beautypg.com

Yaskawa LEGEND-MC User Manual

Page 171

background image

161

LEGEND-MC User’s Manual

USAGE:

EXAMPLES:

This program was designed to read four analog inputs from 2 analog input cards (the first two cards) in
the rack of a Wago I/O system. Note Modbus function 3 is used to read the four regsiters starting at
register 0 (The E & R variables.) Register 0 correlates to Modbus address 40000. The data received is a
binary value that reporesents a +/- 10 volt input, thus the conversion calculation.

7(67
'0:$*2>@
:7
,$:70:
,+& !
:7:7-3:7B,+&!
,+& !
:7+&:7-3:7+&B,+&!
( 5 L

0$,1
0%& (5:$*2>@
0*/3
,):$*2>L@
92/76 :$*2>L@)))
(/6(
92/76 :$*2>L@)))
(1',)
0*92/76^)`^1`L L
-30*/3L5L
0*:7
-30$,1

While Moving

Yes

Default Value

---

In a Program

Yes

Default Format

---

Command Line

Yes

Distributed Control

Yes

IHF=>-2

Disconnect handle

IHF=192,168,3,11<502>2

Connect handle

MBF=6,16,632+(MODULE*8),NUMOFIO*2,A[ ]

Send Modbus configuration command

MBF=6,6,1025,1

Modbus command to burn parameters in
OPTO-22 Ethernet module

MBF=6,2,0,1,A[ ]

Read single digital input into array A