35
• Sample program
Explanation of the Sample program
(1) To the DM0000 address, set the top address (DM1000)
in the memory area which is used for the
communication with the CIT-200.
(2) To the address DM1000, set the number of CCT-235
units (10 units) connected with the CIT-200.
(3) To the addresses DM1001 to DM1004, set the number of
CCT-235 units (10 units) connected with the CPT-20A.
(4) To the address DM1005, set the communication item
Used/Not used selection flag.
See page 37 for the communication item.
(5) To address DM1006, set the communication item
Used/Not used selection flag.
See page 37 for the communication item.
(6) To address DM1007, set the communication item
Used/Not used selection flag.
See page 37 for the communication item.
(7) To the address DM0001, set the fixed value 4660
(decimal).
(8) To the address DM0002, set the fixed value 22136
(decimal).
(Fig. 8.2-1)
8.3 Communication details
How to communicate between the CIT-200 and Host link unit (C200H-LK202-V1)
After the power to the PLC is turned on, the PLC sets address 0 in the memory area to top address
and sets the number of CPT-20A units connected to the CIT-200, the number of the CCT-235
units connected to the CPT-20A and communication items to the preset addresses (top address to top
19).
After that, The PLC sets address 1 to 4660 (decimal), and address 2 to 22136 (decimal).
After the power to the CIT-200 is turned on, the CIT-200 continues to read the PLC address (0 to 2).
After confirming that address 1 is 4660 (decimal) and address 2 is 22136 (decimal), the CIT-200 reads
the data of the addresses (top address to top 19) in address 0.
Note
• Memory type is decided beforehand depending on the PLC selected by the Rotary switch.
To the address 0 of the predetermined memory, set the top address in the memory area which is
used for communications with the CIT-200.
• The CIT-200 directly reads from and writes to the data memory of the PLC, therefore the PLC
does not need to manage the communication procedure, and the program can be simplified.
• With writing to and reading from the PLC, the amount of data processed at a time is 20 channels
per item.
25315
(1)
#03E8
MOV
#FFFF
MOV
#FFFF
MOV
#007F
MOV
#1234
MOV
#5678
MOV
END
#000A
MOV
#AAAA
MOV
#0000
MOV
#AAAA
MOV
#00AA
MOV
DM0000
DM1000
DM1001
DM1002
DM1003
DM1004
DM1006
DM1005
DM1007
DM0001
DM0002
(2)
(3)
(4)
(5)
(6)
(7)
(8)
Summary of Contents for CIT-200
Page 1: ...PLC INTERFACE UNIT CIT 200 INSTRUCTION MANUAL ...
Page 51: ...51 ...