CIMON PLC Ethernet Communication Driver

 

CIMON PLC Ethernet Communication Driver is the driver to communicate with CIMON PLC of CIMON Co., Ltd. in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of CIMON PLC Ethernet communication driver.

<Figure 1>  Read setting example of CIMON PLC Ethernet communication driver

Device part of  <Figure 1> input connection type(TCP/IP or UDP/IP), IP address of PLC(192.168.1.99), service port number(10260, fixed) respectively.

CIMON PLC can set IP address of plc by ladder program, but service port number are fixed to 10260 (TCP/IP), 10262.

 

CIMON PLC Ethernet communication driver¡¯s read schedule 

Read schedule setting parameters are as follows:

1) STATION – Don't care.

2) Read command – Read device type = X, Y, M, L, K, F, T, C, S, D, DD, DD2, DF, DF2, TC, TS, CC, CS, Z ( Refer to <Table 1>).

3) Read Start Address Read start address of device.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Read word size (max. 512 word ).

 

Read schedule example) 

  READ, 1, M, 0, 0, 16,
READ, 1, D, 0, 20, 100,
READ, 1, S, 0, 120, 50,

 

<Table 1> is device type and data type of CIMON PLC.

Device Contents Description Data type Read Write
X Input Input of direct data read input BIT/WORD WORD unit

Bit(Digital) write,

Word(Analog) write(WORD,DWORD)

 

Y Output Output of operation
M Internal memory Internal memory for operation or logic circuits
L Link Data link of upper/the sub PLC/controller
K Keep Equal 'M' memory but keep data when power on/off
F Special Operation status, fault status, card number, etc of PLC
T Timer Timer BIT only 10 bit unit

Bit write only

C Counter Counter
S Step control Relay of step control WORD only WORDunit

Word(Analog) write(WORD,DWORD),

 

Bit write support after WORD reading and bit operation

D
( DD, DD2,
DF,
 DF2 )
Data Internal data register for data saving
DD : double word unit read/write for D device (low high order)
DD2 : double word unit read/write for D device (high low order)
DF : float unit read/write for D device (low high order)
DF2 : float unit read/write for D device (high low order)
TC Current timer Current timer
TS Setting timer Setting timer
CC Current counter Current counter
CS Setting counter Setting counter
Z    
<Table 1> Device type and data type of CIMON PLC

If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.  

<Figure 2> Example of CIMON PLC Ethernet communication driver¡¯s Option dialogue box

You can set read schedule by using , , button and listbox of <Figure 2>. 

<Figure 3> Example of CIMON PLC Ethernet communication driver¡¯s read schedule Add/Edit dialogue box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can write CIMON PLC Ethernet by using write settings.

 

Bit Write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Address of bit write. lower 1 digit( hexadecimal ) = bit position, upper 3 digit( decimal ) = word address.

4)  Extra1                   Write device type = X, Y, M, L, K, F, T, C, S, D, DD, DD2, DF, DF2, TC, TS, CC, CS, Z. (S, D, TC, TS, CC, CS, Z device support after WORD reading and bit operation)

5)  Extra2                   Don't care.

 

Write example 1)

 Port : 0  Station : 0  Address : 000F  Extra1 : M, EXTRA2 :

The setting parameter shown above is an example of bit write for F bit( 16th bit) of M device.

 

Write example 2)

Port : 0  Station : 0  Address : 0035  Extra1 : Y, EXTRA2 :

The setting parameter shown above is an example of bit write for 5 bit( 6th bit), 3 word( 4th word ) of Y device.

 

Write example 3)

Port : 0  Station : 0  Address : 012A  Extra1 : D, EXTRA2 :

The setting parameter shown above is an example of bit write for A bit( 11th bit), 12 word( 13th word ) of D device.

     

Word Write

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Address of word write, 4 digit( hexadecimal ).

4)  Extra1                   Write device type =  X, Y, M, L, K, F, S, D, DD, DD2, DF, DF2, TC, TS, CC, CS, Z. ( T, C ard bit write only device )

5)  Extra2                   WORD/DWORD write data size selection of word write.  2 = DWORD, 0 or etc  : WORD.

 

Write example 1)

Port : 0  Station : 0  Address : 0011  Extra1 : M, EXTRA2 :

The setting parameter shown above is an example of word write for 11 word( 12th word ) of M device.

 

Write example 2)

Port : 0  Station : 0  Address : 0121  Extra1 : D, EXTRA2 :

The setting parameter shown above is an example of word write for 121 word( 122th word ) of D device.

 

Write example 3)

Port : 0  Station : 0  Address : 0121  Extra1 : D, EXTRA2 : 2

The setting parameter shown above is an example of double word write for 121 word( low word ) and 122 word( high word ) of D device.

   

3. connection of communication cable and main power line

  Connection of communication cable and main power line are as follows.

 

Connection of Ethernet(10 Base-T) communication cableEthernet

Please connect normal 10 Base-T communication cable( when connection to hub = direct cable, direct connection to computer = cross cable ) to CM1-EC01A Ethernet module of CIMON PLC such as <Figure 4>.

 

Connection of main power line

Please connect main power line to main power connector, AC220V such as <Figure 4>.   

<Figure 4> Connection example of main power line and Ethernet communication cable to CIMON PLC

 

4. IP address setting of communication module

  IP address setting of CIMON PLC's Ethernet module are as follows.

1.       Connect CIMON PLC loader cable to 'COM' port( COM1, COM2, ... ) of PC.

2.       Execute CIMON PLC's loader program, 'CICON'.

3.       Link PLC to ¡®Online|Connect¡¯ (or ¡®Online|Connect+Download+Monitor¡¯) menu of 'CICON' program.

4.       Select ¡®Tools|Special card setting..¡¯ menu, then will shows dialog box such as <Figure 5>.

5.       Set card type to 'Ethernet' and press 'OK' button. Then will shows dialog box such as <Figure 6>.

6.       Input IP address, gateway, Net-Mask at <Figure 6> dialog box.

   

Note) Normally upper 3 digit IP address(IP4) set to equal address.( when Net-Mask = 255.255.255.0 )

Example)  If computer's IP address = 192.168.1.5, CIMON PLC's IP address = 192.168.1.? (? = 1 ~ 255, except 5)   

<Figure 5> Example of special card setting dialog box of CICON program
<Figure 6> Example of ethernet card setting dialog box of CICON program