Omron CS1W-LC001 Operation Manual page 192

Loop control unit
Table of Contents

Advertisement

How to Use FINS Commands
Example
Command data
S
D02000
S+1
D02001
S+2
D02002
S+3
D02003
Response data
D
D03000
D+1
D03001
D+2
D03002
D+3
D03003
D+4
D03004
D+5
D03005
Control data
C
D04000
C+1
D04001
C+2
D04002
C+3
D04003
C+4
D04004
C+5
D04005
∗ 1: Set to 00 Hex as destination is self node.
∗ 2: Example w here unit number of Loop Control Unit is 01. Set 11 Hex obtained by adding 10 Hex to 01.
4. When the FINS response frame is returned from the Loop Control Unit,
data conforming to the response format is stored to the response
address.
5. The response is then read when the Network Communications Enabled
Flag corresponding to the communications port number to be used turns
ON.
For details, refer to items describing the CMND (DELIVER COMMAND)
instruction in the Communications Commands Reference Manual (Cat.
No. SBCA304) or the CS1 CPU Unit Command Reference Manual (Cat.
No. SBCA-302).
To read ITEM007 (PV) at block address 001 (e.g. in the case of Basic PID)
on the Loop Control Unit currently mounted on the self node (when the unit
number of the Loop Control Unit is 01)
CMND
S: First command w ord
D02000
D: First response w ord
D03000
C: First control w ord
D04000
0 2 4 0
Command code: 0240 (READ MULTIPLE ITEMS FROM FUNCTION BLOCK)
0 0 0 1
Block address: 0001
0 0 0 1
Number of ITEMs: 1
0 0 0 7
Read start address (example: PV of basic PID)
0 2 4 0
Command code: 0240 (READ MULTIPLE ITEMS FROM FUNCTION BLOCK)
Store
End code
0 0 0 1
Number of normal read ITEMs: 1
0 0 0 7
Read start address: 007
Á Á
0 2
Data length: 2 bytes
Á Á
Á Á Á Á
Read data:
0 0 0 8
Number of command data bytes: Above eight bytes (0008 Hex)
0 0 0 B
Number of response data bytes: 11 bytes (000B Hex)
0 0 0 0
Fixed to 00 Hex. Send destination netw ork address
Send destination node address (00 Hex ∗ 1), Send destination unit address (11 Hex ∗ 2)
0 0 1 1
0 0 0 0
Response required/not required (0 Hex: required), Communications port number (0 Hex),
fixed to 0 Hex, re-send count (0 Hex)
0 0 0 0
Response monitor time (0000: 2 s default)
Section
6-1
175

Advertisement

Table of Contents
loading

Table of Contents