AOJ2-C214(MELSEC) communication driver

 

AOJ2-C214 communication driver is the driver to communicate with MELSEC PLC of Mitsubishi in Japan.

 

Note) AOJ2-C214 communication driver support by 'Protocol Format 1' . So, you have to set 'Protocol Format 1'  by using switch of communication module.

M2N, M3N, GOLDSEC(LS ) model use DLL-MELSEC communication driver.

 
1. Read Settings

 

<Figure 1> is read setting example of AOJ2-C214 communication driver.

<Figure 1>  Read setting example of AOJ2-C214 communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to setting of PLC.

 

AOJ2-C214 communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – station number of PLC.

2) Read memory type – memory type = X, Y, M, L, S, B, R, .... ( refer to <Table 1> )

3) Read start address – reading start address in memory.

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

5) Read Size – word unit read size.

 

Read schedule example)

READ, 0, X,  0,   0,  10,

READ, 0, Y,  0,  10,  10,

READ, 0, M,  0,  20,  10,

READ, 0, L,  0,  30,  10,

READ, 0, S,  0,  40,  10,

READ, 0, B,  0,  50,  10,

READ, 0, R,  0,  60,  10,

 

<Table 1> is memory type and range for Melsec PLC.

Memory type

Range

Decimal/dex-decimal

X

X0000 ~ X01FF

hex-decimal

Y

Y0000 ~ Y01FF

hex-decimal

M

M0000 ~ M2047

decimal

L

L0000 ~ L2047

decimal

S

S0000 ~ S2047

decimal

B

B0000 ~ B03FF

hex-decimal

F

F0000 ~ F0255

decimal

M

M9000 ~ M9255

decimal

TS

TS0000 ~ TS255

decimal

TC

TC0000 ~ TC255

decimal

CS

CS0000 ~ CS255

decimal

CC

CC0000 ~ CC255

decimal

TN

TN0000 ~ TN255

decimal

CN

CN0000 ~ CN255

decimal

D

D0000 ~ D1023

decimal

W

W0000 ~ W03FF

decimal

R

R0000 ~ R4095

decimal

D

D9000 ~ D9255

decimal

<Table 1> Memory type and range for Melsec PLC

<Table 2> ~ <Table 4> are DIP switch setting for MJ71-UC24, A1SJ71UC24-R4, AOJ2-C214 communication module

Location DIP NO Contents ON OFF Remarks
upper
8 switch
SW 11 422 or 232C RS-422 RS-232C Device setting according to DIP switch
SW 12 Data Bit 8 Bit 7 Bit
SW 13SW 14SW 15 Baud Rate 300 600 1200 2400 4800 9600 19200 ¹Ì»ç¿ë
OFF ON OFF ON OFF ON OFF ON
OFF OFF ON ON OFF OFF ON ON
OFF OFF OFF OFF ON ON ON ON
SW 16 Parity use use don't use
SW 17 Parity EVEN (2) ODD (1)
SW 18 Stop Bit 2 Bit 1 Bit
lower
4 switch
SW 21 Sum Check use use don't use set to ON
for communication
SW 22  Write enable when Run enable disable set to ON
for write setting
SW 23 computer link computer link multi-scan set to ON
SW 24 termination resistor use don't use  
<Table 2> DIP switch setting for MJ71-UC24 communication module
Location DIP NO Contents ON OFF Remarks
upper
4 switch
SW 01 don't use - -  
SW 02 computer link computer link don't use set to ON
SW 03 don't use - -  
SW 04  Write enable when Run enable disable set to ON
for write setting
lower
8 switch
SW 05SW 06SW 07 Baud Rate 300 600 1200 2400 4800 9600 19200 don't use Device setting according to DIP switch
OFF ON OFF ON OFF ON OFF ON
OFF OFF ON ON OFF OFF ON ON
OFF OFF OFF OFF ON ON ON ON
SW 08 Data Bit 8 Bit 7 Bit
SW 09 Parity use use don't use
SW 10 Parity EVEN (2) ODD (1)
SW 11 Stop Bit 2 Bit 1 Bit
SW 12 Sum Check use use don't use set to ON
for write setting
<Table 3> DIP switch setting for A1SJ71UC24-R4 communication module

Note) RS-422/485 communication with A1SJ71UC24-R4 module have to set 'Type 1'  of no. 5 Mode switch.

Location DIP NO Contents ON OFF Remarks
right
3 switch
SW 10 computer link computer link multi-scan set to ON
SW 11 422 or 232C RS-422 RS-232C  
SW 12  Write enable when Run enable disable set to ON
for write setting
left
8 switch
SW 13SW 14SW 15 Baud Rate 300 600 1200 2400 4800 9600 19200 ¹Ì»ç¿ë Device setting according to DIP switch
OFF ON OFF ON OFF ON OFF ON
OFF OFF ON ON OFF OFF ON ON
OFF OFF OFF OFF ON ON ON ON
SW 16 Data Bit 8 Bit 7 Bit
SW 17 Parity use use don't use
SW 18 Parity EVEN (2) ODD (1)
SW 19 Stop Bit 2 Bit 1 Bit
SW 20 Sum Check use use don't use set to ON
for write setting
<Table 4> DIP switch setting for AOJ2-C214 communication module

 

2. Writing settings

You can set Melsec PLC  by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             station number of PLC.

3)  ADDRESS          address in PLC memory.

4)  Extra1                  write memory type = X, Y, M, ....

5) Extra2                   don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0003, Extra1: Y,  Extra2 : 0

The setting parameter shown above is bit control(On/Off) example for 0 word, 3bit of Y PLC memory.

 

Analog Write 

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             station number of PLC.

3)  ADDRESS          address in PLC memory.

4)  Extra1                  write memory type = D, R, T, C, ....

5) Extra2                   don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0015, Extra1: D,  Extra2 : 0

The setting parameter shown above is word write example for 15 word of D PLC memory.

 

3. Notes of Melsec FX2N

Melsec FX2N series use Melsec communicatin driver.

FX2N series should to set communication setting by using Ladder program.

At the Ladder, please set Dedicated Protocol and Protocol Format 1. Also check PLC station number at Ladder.

Note) Ladder setting of Melsec FX2N Ladder