128
•
Word Contents or PV (Two Bytes)
Bits 0 to 7 (second byte)
Bits 8 to 15 (first byte)
Byte 1 Byte 2
9-5
Sample Program
This subsection provides a sample program for executing FINS commands and
responses.
9-5-1 Program Example
1, 2, 3...
1. The CMCR instruction is executed when the execution condition 00000
turns ON while the Instruction Enabled Flag (bit 25204) is ON. Bit 12800
stays ON from the time CMCR execution is started until it is completed.
2. The CMCR instruction’s control data and command data are set in advance
in the C200HX/HG/HE’s memory area.
Control Data
Word
Contents
Meaning
D0000
$1810
Operating level #1
D0001
$0002
Number of bytes to send: 2 bytes
D0002
$0064
Number of bytes to receive: 100
D0003
$0001
Destination network address: $01
D0004
$0100
Destination node number: $01
Destination unit address: $00 (PC)
D0005
$0000
Request response
Number of retries: 0 (No retries)
D0006
$0000
Response monitor time: 2.2 s ($0000 is default)
Command Data
Word
Contents
Meaning
D0010
$0002
Data length: 2 words (BCD)
D0011
$0701
FINS command: CLOCK READ
3. Specifies the FINS response storage destination. In this example, the FINS
response data is stored from DM 0020 onwards.
Sample Program
Section 9-5
Summary of Contents for SYSMAC C200HW-PCS01-EV1
Page 1: ...Cat No W313 E1 3 PC Card Unit SYSMAC C200HW PCU01 C200HW PCS01 EV1 OPERATION MANUAL...
Page 2: ......
Page 3: ...SYSMAC C200HW PCU01 C200HW PCS01 EV1 PC Card Unit Operation Manual Revised January 2000...
Page 4: ......
Page 6: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 34: ......
Page 38: ......
Page 60: ......
Page 80: ......
Page 82: ......
Page 88: ......
Page 120: ......
Page 148: ......
Page 178: ......
Page 214: ......
Page 220: ......
Page 232: ......
Page 234: ......
Page 236: ......
Page 238: ......
Page 240: ......