get system value instruction

4

Click here to load reader

Upload: cyrus6997303

Post on 10-Apr-2015

276 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Get System Value Instruction

Answer ID 27139

Products

Programmable Controllers

Programmable Automation Controllers

CompactLogix (1768/1769) ControlLogix (1756) FlexLogix (1794)

Category General

Date Created 12/16/2003 12:00 AM

Last Updated 08/18/2009 02:22 AM

Access Level TechConnect

Prev. TN# G67130462

Get System Value Instruction. Question Get System Value Instruction

Answer

DateTime[0] = year DateTime[1] = month DateTime[2] = day DateTime[3] = hour DateTime[4] = minute DatetIme[5] = seconds DateTime[6] = microseconds

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name WALLCLOCKTIME !| |Instance Name || | || |Attribute Name DateTime || |Dest Datetime[0] || +---------------------------------|

This rung retrieves the timeslice register from the processor. The factory default setting for this parameter is 20% and can be changed by theuser when the processor is not in run mode. Value is in percentage and assigned tocommunications.

|-----------------------------------------------+Get System Value-----------------| | !| |Class Name CONTROLLER !| |Instance Name || | || |Attribute Name TimeSlice || |Dest timeslice |! 21| +---------------------------------|

This rung retrieves the time limit for execution for the maintask.The value isdisplayed in microseconds.

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name TASK !| |Instance Name MainTask || | || |Attribute Name Watchdog || |Dest Watchdog | 500000

The LastScantime is time the processor takes to execute the Maintask.

Get System Value Instruction. http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/p...

1 de 4 9/24/2009 3:08 PM

Page 2: Get System Value Instruction

The value will be in microseconds and updated after every scan.

| | +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name TASK !| |Instance Name MainTask || | || |Attribute Name LastScanTime || |Dest LastScanTime | 567| +---------------------------------|

The Maxscantime is the maximum recorded execution time for thisprogram. Time is recorded in microseconds.

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name TASK !| |Instance Name MainTask || | || |Attribute Name MaxScanTime || |Dest MaxScanTime | 2932| +---------------------------------|

This rung retrieves the baud rate of channel 0 that the user has chosen.

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name Serialport !| |Instance Name || | || |Attribute Name BaudRate || |Dest Baudrate | 19200| +---------------------------------|

The LedStatus specifies the current state of the I/O led on the front of theprocessor. 0 = LED Off No modules are configured 1 = Flashing Red None of the modules are configured 2 = Flashing Green At least one module is not running 3 = Solid Green All modules are running

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !

Get System Value Instruction. http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/p...

2 de 4 9/24/2009 3:08 PM

Page 3: Get System Value Instruction

| |Class Name MODULE !| |Instance Name || | || |Attribute Name LedStatus || |Dest LedStatus | 3| +---------------------------------|

This rung monitors the major fault bits

1 = Power Loss 3 = I/O 4 = Instruction execution 5 = Fault Handler 6 = Watchdog 7 = Stack 8 = Mode Change 11 = Motion

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name FAULTLOG !| |Instance Name || | || |Attribute Name MajorFaultBits || |Dest MajorFault | 0| +---------------------------------|

This rung monitors Minor Faults

4 = Instruction Execution 6 = Watchdog 9 = Serial Port 10 = Battery

| +GSV------------------------------||-----------------------------------------------+Get System Value !| | !| |Class Name FAULTLOG !| |Instance Name || | || |Attribute Name MinorFaultBits || |Dest MinorFault | 0| +---------------------------------|

Catalog Number: 1769L20;1769L30;1769L31;1769L32E;1769L35E

Get System Value Instruction. http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/p...

3 de 4 9/24/2009 3:08 PM

Page 4: Get System Value Instruction

DocFullNum: G67130462Revision:Fixed in Revision:Package:Modual:

DISCLAIMERThis knowledge base web site is intended to provide general technicalinformation on a particular subject or subjects and is not an exhaustive treatmentof such subjects. Accordingly, the information in this web site is not intended toconstitute application, design, software or other professional engineering adviceor services. Before making any decision or taking any action, which might affectyour equipment, you should consult a qualified professional advisor.

ROCKWELL AUTOMATION DOES NOT WARRANT THE COMPLETENESS, TIMELINESSOR ACCURACY OF ANY OF THE DATA CONTAINED IN THIS WEB SITE AND MAY MAKECHANGES THERETO AT ANY TIME IN ITS SOLE DISCRETION WITHOUT NOTICE.FURTHER, ALL INFORMATION CONVEYED HEREBY IS PROVIDED TO USERS "AS IS." INNO EVENT SHALL ROCKWELL BE LIABLE FOR ANY DAMAGES OF ANY KINDINCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS PROFIT ORDAMAGE, EVEN IF ROCKWELL AUTOMATION HAVE BEEN ADVISED ON THEPOSSIBILITY OF SUCH DAMAGES.

ROCKWELL AUTOMATION DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED ORIMPLIED IN RESPECT OF THE INFORMATION (INCLUDING SOFTWARE) PROVIDEDHEREBY, INCLUDING THE IMPLIED WARRANTIES OF FITNESS FOR A PARTICULARPURPOSE, MERCHANTABILITY, AND NON-INFRINGEMENT. Note that certainjurisdictions do not countenance the exclusion of implied warranties; thus, thisdisclaimer may not apply to you.

Copyright © 2006-2008 Rockwell Automation. All rights reserved.

File Attachments • october.ACD

Get System Value Instruction. http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/p...

4 de 4 9/24/2009 3:08 PM