Download CPM2C-S - Valtek
Transcript
Section Explicit Message Communications 6-3 CV500/CV100/CV2000/CVM1 Programmable Controllers Operation Manual: Ladder Diagrams (W202) for CVM1 and CV-series PCs. Example Network Conditions Master’s node number: 63 Slave’s network address: 1 Slave’s node number: 2 CMND(194) Operand Details [CMND S D C] • Command Words Word Contents (Hex) S 28 01 EXPLICIT MESSAGE SEND command code = 2801 (Hex) S+1 02 1C Slave node number = 02 (Hex) WRITE BYTE DATA command service code = 1E (Hex) S+2 00 2F Class ID = 002F (Hex) S+3 00 01 Instance ID = 0001 (Hex) specifies data area S+4 0A 00 Starting write address = 000A (Hex) specifies IR 010 Address L = 0A (Hex); Address H = 00 (Hex) S+5 HH LL These words contain the data to be written to slave words IR 010 to IR 029. When the WRITE BYTE DATA command is executed from an OMRON Master, the bytes are written to the Slave in the same order (HH LL) in which they appear in the Master. to S+24 : HH LL Function • Response Words (The results are stored as follows.) Word Contents (Hex) Function D 28 01 EXPLICIT MESSAGE SEND command code = 2801 (Hex) D+1 00 00 Normal completion code = 0000 (Hex) D+2 00 02 Number of bytes received = 02 (Hex) indicates 2 bytes (This is the number of bytes from D+3 to the end.) D+3 02 9C Slave’s node number = 02 (Hex) WRITE BYTE DATA response service code = 9E (Hex) • Control Words 128 Word Contents (Hex) Function C 00 32 Number of bytes of command data beginning with word S = 32 (Hex) specifies 50 bytes C+1 00 08 Number of bytes of response data beginning with word D = 08 (Hex) specifies 8 bytes C+2 00 01 Destination network address = 01 (Hex) C+3 3F FE Master’s node number = 3F (Hex) specifies 63 Master’s unit address = FE (Hex) specifies the local Unit C+4 00 00 Response required Transmission port number = 00 (Hex) specifies 0 Number of retries = 00 (Hex) specifies 0 C+5 00 64 Response monitoring time = 64 (Hex) specifies 10.0 seconds