MODICON communication driver is the driver to communicate with Modicon PLC in U.S.A .
<Figure 1> is MODICON communication driver read setting examples.
<Figure 1> Read setting example of MODICON communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(2), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.
Baud rate, parity bit, data bit, stop bit of Modicon PLC can set by using Ladder program.
MODICON communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – slave address of PLC.
2) Reference number of PLC – 1st number of reference of PLC. 0XXXX, 1XXXX, 3XXXX, 4XXXX - 0, 1, 3, 4.
3) Read Start Address – read start address in reference. ( reference address - 1 )
4) Saving start address for Communication Server – saving start memory address which will store the data from equipment.
5) Read size – word unit reading size. 0XXXX, 1XXXX reference : 1 word = 16 channel. ( maximun read size = 16 (160 channel ))
Read schedule example)
READ, 1, 0, 0, 0, 16,
READ, 1, 1, 0, 16, 16,
READ, 1, 3, 0, 50, 20,
READ, 1, 3, 0, 70, 20,
You can set Modicon PLC by using 'write settings'.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION slave address of PLC.
3) ADDRESS writing memory address of PLC( in reference ).
4) Extra1 fixed to 0xxxx reference.
5) Extra2 don't care.
Write example 1)
PORT:0, station:1, ADDRESS:0100, Extra1: , Extra2 : 0
The setting parameter shown above is bit write setting example for 00100 address.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION slave address of PLC.
3) ADDRESS writing memory address of PLC( in reference ).
4) Extra1 fixed to 4xxxx reference.
5) Extra2 don't care.
Write example 1)
PORT:0, station:1, ADDRESS:0090, Extra1: , Extra2 : 0
The setting parameter shown above is word unit write setting example for 40090 address.