Download 5 - GE Intelligent Platforms: Support Home

Transcript
3
Section 5: CCM COMMREQ Status Word
A general description of the status word for a COMMREQ appears in section 3 of this
chapter. There are several points to remember when interpreting the contents of the
CCM COMMREQ status word:
1.
CCM never returns a status word value of zero to the PLC CPU. If the user ladder
program needs to know when the command is complete, it can zero the status word
before issuing the COMMREQ and then check the status word for a non-zero value.
Note
It is strongly recommended that only one CCM COMMREQ be
outstanding for each CCM port at any time. The status word can be
used to control the timing of COMMREQs. See the example ladder
program in section 6 of this chapter.
2.
CCM uses a status code value of 1 to indicate that the operation was completed
without errors. Refer to the table below for a complete listing of secondary error
codes for CCM.
3.
Display the status word in hexadecimal format to read the two bytes of data. When
an error occurs, the least significant byte is greater than 1.
The following table lists the CCM serial port error codes that are reported (as secondary
error codes) in the most significant byte of the COMMREQ status word after the
execution of a CCM COMMREQ. These codes also appear in the least significant byte of
CCM Diagnostic Status Word 1.
Table 3-13. CCM Serial Port Secondary Error Codes
(High Byte of Diagnostic Status Word 1)
Error Code
Decimal Hexadecimal
GFK-0255K
0
1
2
00
01
02
3
4
03
04
5
05
6
06
7
8
9
07
08
09
10
0A
Chapter 3 CCM Operation
Description
Successfultransfer.
A timeout occurred on the serial link.
A COMMREQ attempted to write data to a section of the CCM
scratch pad that is permanently write-protected by the CCM.
A COMMREQ attempted to read or write a non-existentI/Opoint.
A COMMREQ attempted to access more data than is available in a
particularmemory type.
A COMMREQ attempted to read or write an odd number of bytes
to register memory or the diagnostic status words.
A COMMREQ attempted to read or write one or more non-existent
registers.
A COMMREQ specified the transfer of zero data bytes.
A COMMREQ attempted to write to protected memory.
A COMMREQ attempted to transfer data to or from an invalid
memory type or absolute source address.
A COMMREQ attempted to read or write one or more non-existent
diagnostic status words.
3-23