YOKOGAWA FA-M3 Serial Communication Driver

 

YOKOGAWA FA-M3 Serial communication driver is the driver to communicate(serial ) with PLC of Yokogawa Control Systems Ltd., in Japan.

 

1. Read settings

 

<Figure 1> is read setting example of  YOKOGAWA FA-M3 Serial( or Load port) communication driver. 

<Figure 1>  Read setting example of  YOKOGAWA FA-M3 Serial 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.

Also you can input 'CPU number of FA-M3 PLC' (1 ~ 4, default = 1), 'use Sum check'(Check : 1, don't check : 0, default = 0), 'use Terminator code'(use : 1, don't use : 0, default = 0)  by using option part.

 

At communication module of YOKOGAWA FA-M3 PLC Serial have SW1, SW2 2 Dip switch. <Table 1>, <Table 2> are setting method of serial communication module.

BIT position Baud rate (BPS) BIT position Baud rate (BPS)
0 300 4 4800
1 600 5 9600
2 1200 6 19200
3 2400 7 -
<Table 1> SW1 setting method for baud rate of serial communication module

 

BIT position Contents OFF ON
0 Data Bit 7 Bit 8 Bit
1 Parity NO YES
2   ODD EVEN
3 Stop Bit 1 Bit 0 Bit
4 Check Sum NO YES
5 Stop Bit NO YES
6 Terminator NO YES
7 Protection NO YES
8 (Always Off)    
<Table 2> SW2 setting method of serial communication module

 

 

<Figure 2>  SW1, SW2 setting switch of FA-M3 Serial communication module

 YOKOGAWA FA-M3 Serial communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Station number of PLC = 1 ~ 32.

Note) Not CPU number, station number of PLC.

2) Read Command – Command = B, CI, CP, CS, CU, cu, D, E, e, I, i, L, l, M, m, R, TI, TP, TS, TU, tu, V, W, X, x, Y, y, Z. ( Refer to <Table 3> )

3) Read Start Address Read start address of each memory.

 cu, e, i, l, m, tu, x, y Read command (lowercase letters) : 0 ~, 10 bit unit.

Example1) 0 read start address = 1st Bit ~,

Example2) 1 read start address = 11th Bit ~,

Example3) 2 read start address = 21th Bit ~,

¡¦

Example4) 15 read start address = 151th Bit ~,

¡¦

 

B, CI, CP, CS, CU, D, E, I, L, M, R, TI, TP, TS, TU, V, W, X, Y, Z Read command : 1 ~ , 1 word unit.

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

5) Read Size – Read size of 10 bit or 1 word unit.  

cu, e, i, l, m, tu, x, y Read command : 1 ~ 25 (10 Bit ~ 250 Bit)

B, CI, CP, CS, CU, D, E, I, L, M, R, TI, TP, TS, TU, V, W, X, Y, Z Read command : 1 ~ 64 (1 ~ 64 word)

 

Read schedule example) 

READ,     1,     D,     1,     1,        32,

READ,     1,     W,   51,    41,      10,

READ,     1,     m,    0,   101,      10,

READ,     1,     i,      5,   121,      10,

 

 

<Table 4> is read command and contents of YOKOGAWA FA-M3 PLC.

 

 

Read command

(memory type)

Data type

Contents

Read unit

B

WORD

File Register - only F3SP25, F3SP35, F3SP28, F3SP38, F3SP58 CPU module 

WORD unit

CI

Counter current value

CP

Counter Present value

CS

Counter Setup value

CU

BIT

Count-up Relay

WORD unit

cu

10 Bit unit

D

WORD

Data Register

WORD unit

E

BIT

Shared Relay

WORD unit

e

10 Bit unit

I

Internal Relay

WORD unit

i

10 Bit unit

L

Link Relay

WORD unit

l

10 Bit unit

M

Special Relay

WORD unit

m

10 Bit unit

R

WORD

Shared Register

WORD unit

TI

Timer current value

TP

Timer Present value

TS

Timer Setup value

TU

BIT

Time-up Relay

WORD unit

tu

10 Bit unit

V

WORD

Index Register

WORD unit

W

Link Register

X

BIT

Input Relay

WORD unit

x

10 Bit unit

Y

Output Relay

WORD unit

y

110 Bit unit

Z

WORD

Special Register

WORD unit

<Table 4> Read command and contents of YOKOGAWA FA-M3 PLC

  Note) cu, e, i, l, m, tu, x, y and CU, E, I, L, M, TU, X, Y read command are equal read of memory area, but read data unit differ 10 bit  and word unit.

When you read 10 bit unit, save the readed data form 1 bit(2nd bit) ~ 9 bit(10th bit) of 'Save start address + 0' and 0 bit(1st bit) of of 'Save start address + 1'.

Example) READ, 1, m, 15, 115, 10,

← M (Special Relay) memory area of PLC, address = 151(15 : read start address), read size = 100 bits(10 : read size).

←Save readed data at 1 ~ 9 bit (0 bit = don't save) of 115(115 : Save start address) WORD memory and 0 ~ 9 bit of 116 ~ 124 WORD memory of Communication Server.

←Also, save 0 bit of 125 WORD memory that is last readed data bit.

 

If you want more information for YOKOGAWA FA-M3  PLC, plsease refer to reference manual of YOKOGAWA FA-M3  PLC.

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

<Figure 3> Example of  YOKOGAWA FA-M3 Serial communication driver¡¯s Option dialogue box

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

CPU number of FA-M3 PLC, use Sum check, use Terminator code can input by using the part of ¡®CPU NO¡¯, 'Use Sum Check', "use Terminator( CR )' shown in <Figure 3>.

<Figure 4> Example of  YOKOGAWA FA-M3 Serial communication driver¡¯s read schedule Add/Edit dialogue box

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

 

2. Writing settings

You can write the setting value by using write settings.

 

CS, TS, X memory area are read only memory, so you can't write.

Also at writing settings don't use 'cu, e, i, l, m, tu, y' command.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Station number of PLC = 1 ~ 32.

3)  ADDRESS           Write address of memory area.

B, CI, CP, D, R, TI, TP, V, W, Z write command : Higher 3 digit  = 1 ~ WORD address, Lower 1 digit - 0 ~ F bit position,

(B, CI, CP, D, R, TI, TP, V, W, Z memory area don't support direct bit write, so this driver read 'Word' data and write after bit operation)

CU, E, I, L, M, TU, Y  write command :  1 ~ Bit address. (decimal unit  : 0001, 0002, ... 0009, 0010, ¡¦)

 RESET : Don't care.

4) Extra1          Write command or memory area for writing =  B, CI, CP, CU, D, E, I, L, M, R, TI, TP, TU, V, W, Y, Z : memory area for writing,   RESET  : reset of module write command.

5) Extra2          Don't care.

 

Write example 1)

PORT:0,  Station : 1,  Address : 0123,  Extra1 : D, EXTRA2 :

The setting parameter shown above is bit control(On/Off) example of 12 Word, 3 Bit(4th) address at 'D' device memory area.

 

Write example 2)

PORT:0,  Station : 1,  Address : 012F,  Extra1 : D, EXTRA2 :

The setting parameter shown above is bit control(On/Off) example of 12 Word, F Bit(16th) address at 'D' device memory area.

 

Write example 3)

PORT:0,  Station : 1,  Address : 0051,  Extra1 : M, EXTRA2 :

The setting parameter shown above is bit control(On/Off) example of 51 Bit address at 'M' device memory area.

 

Write example 4)

PORT:0,  Station : 1,  Address : 0135,  Extra1 : M, EXTRA2 :

The setting parameter shown above is bit control(On/Off) example of 135 Bit address at 'M' device memory area.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Station number of PLC = 1 ~ 32.

3)  ADDRESS           Write address of memory area.(decimal unit)

B, CI, CP, D, R, TI, TP, V, W, Z write command :  1 ~ WORD address,

CU, E, I, L, M, TU, Y  write command :  1 ~ Word address. Write one word(16 bits) data from (Address -1) x 16 + 1 Bit position.

example)  Address : 0001 = 1 ~ 16 bit data write ,  Address : 0002 = 17 ~ 32 Bit data write.

 RESET : Don't care.

4) Extra1          Write command or memory area for writing =  B, CI, CP, CU, D, E, I, L, M, R, TI, TP, TU, V, W, Y, Z : memory area for writing,   RESET  : reset of module write command.

5) Extra2          Don't care.

 

Write example 1)

PORT:0,  Station : 1,  Address : 0001,  Extra1 : D, EXTRA2 :

The setting parameter shown above is word unit write example of 1 Word address at 'D' device memory area.

 

 

Write example 2)

PORT:0,  Station : 1,  Address : 0035,  Extra1 : D, EXTRA2 :

The setting parameter shown above is word unit write example of 35 Word address at 'D' device memory area.

 

Write example 3)

PORT:0,  Station : 1,  Address : 0001,  Extra1 : M, EXTRA2 :

The setting parameter shown above is word unit write example of 1 ~ 16 bits(one word) address at 'M' device memory area.

 

 

Write example 4)

PORT:0,  Station : 1,  Address : 0015,  Extra1 : M, EXTRA2 :

The setting parameter shown above is word unit write example of 241 ~ 256 bits(one word) address at 'M' device memory area.

 

3. connection of communication cable and main power

Connection of communication cable and main power are as follows.

 

Connection of communication cable

Please connect normal full-serial communication cable to 9 pin RS-232C connector such as <Figur 5>.

 

Note) You have to connect full RS-232C serial communication cable.

 

<Figure 5> is main power and communication cable connection example to  FA-M3 PLC.

 

<Figure 5> Main power and communication cable connection example to  FA-M3 PLC

Station setting of YOKOGAWA FA-M3 PLC

You can set station by using Ladder program of FA-M3 PLC.

 

Connection of main power

Please connect 110V AC ( or 100 ~ 240V AC, according to power module) main power to N, L connector to FA-M3 PLC such as <Figure 5>.