Previous | Contents | Index |
The read status function issues a diagnostic status request to the device, interprets the device response, and returns the interpretation as a character buffer. An error message is displayed if a device definition does not match the device in the device response. If this occurs, you must correct the device definition before you can perform an upload function or download function for the device.
The following are the steps for the status operation.
First, the common steps listed above are sequentially executed. The common steps above return quite a lot of status information to the user. If the transport connection can be established then the programmable controller is available on the Ethernet, and at least the CP-535 card is functional. If the CPU can be reached, then the CP-511 card or the CPU or the Coordinator are properly connected to the CP-535 and they are all functional. Next, one can determine if the CPU is properly communicating if it returns the type of the CPU and the version level of its software. Following this, one can determine if the CPU is runnning or stopped.
Then, one may request the memory layout of the CPU. This information is useful to quickly glance at the programs and data stored in the programmable controller. This is done by requesting the directory information of all data areas of the programmable controller.
Qualifier | Value | Description |
---|---|---|
QUALIFIER | CPUn | For the model S135U, this specifies the CPU to read status from. |
MEM | Directory layout of memory is returned. | |
CPUn,MEM | For the model S135U, this specifies the CPU to return directory information for. |
When using the MEM qualifier, one should also specify /FULL to display the entire status.
To display the current status of device SIE_ONE type the following:
DCM> READ STATUS SIE_ONE |
This produces a display similar to the following:
Status of device SIE_ONE at 29-DEC-1992 12:15:58.26 The CP511 board is available PLC 135U Type R PLC Sftwr v9.0 Comm Sftwr v9.0 PLC is stopped |
To display the current status of the second CPU of a model 135 programmable controller and to display the memory layout of the CPU, type the following:
DCM> READ STATUS SIE_ONE /QUAL=(CPU2,MEM) /FULL |
This produces a display similar to the following:
Status of device SIE_ONE at 29-DEC-1992 12:15:58.26 The CP511 board is available PLC 135U Type R PLC Sftwr v9.0 Comm Sftwr v9.0 PLC is stopped PB> 10:0007 FB> 10:0010 11:0072 12:00AD 13:00C4 120:0107 FB> 121:012B 122:014F 123:0173 124:018B 125:01A0 FB> 126:01B5 127:01CD OB> 1:01E5 13:01F2 20:0227 21:0238 22:0249 DB> 0:DD85 10:025A 11:0273 12:0377 100:047B DB> 101:0580 |
Previous | Next | Contents | Index |