YASKAWA MP920 User Manual page 176

Machine controller
Table of Contents

Advertisement

7 218IF Module
7.6.2 Communications Ladder Logic Programming
Ladder Logic Program to Send Messages (MSG-SND)
The following diagram shows an example of a master function (MSG-SND) ladder logic
program.
$FSCAN-L
SB000003
L scan:SB03
H scan:SB01
IFON
FOR 1 =00000 to 00031 by 000001
00000
FEND
00001
00003
00000
00100
00001
00000
00000
00000
00000
IEND
Normal
Stop timer
Executing
completion
60.0 DW00030
DB000210
T
Stop
command
DB000202
Start timer
Send start
DW00029
1.0
DB000200
T
Normal
Abnormal
Stop
Send start
completion
completion
Command
DB000200
DB000202
DB000211
Command
DB000201
Command
MSG-SND
DB000201
EXECUTE
Stop
Command
DB000202
ABORT
COMPLETE
00006
DEV-TYP
ERROR
PRO-TYP
00001
CIR-NO
00001
CH-NO
00001
PARAM
DA00000
Normal completion
DB000211
Normal counter
INC
DW00024
Abnormal completion
DB000212
IFON
Error
counter
INC
DW00025
Processing result
DW00000
Status
DW00001
IEND
Abnormal
completion
Execution stop
DB000212
DB000209
Stop
Normal
command
completion
DB000200
DB000202
Execution wait
DB000208
Execution stop timer
Execution wait
60.0 DW00031
DB000208
T
IEND
At startup, set the parameters in the
first scan.
DW register zero clear
DW00001
Connection zero setting
DW00002
Function code setting (readout)
DW00004
Deta address setting (address 0)
DW00005
Data amount setting(100 words)
DW00006
Remote CPU No. setting
DW00007
Coil offset setting
DW00008
Input relay offset setting
DW00009
Input register offset setting
DW00010
Holding register offset setting
DW00011
Abnormal
Stop
completion
command
DB000202
DB000211
DB000212
Force-stop by ABORT if no response is
received 60 seconds after send starts.
DB000200
Transmission is started at 1-second intervals.
Execution
Command
wait
DB000201
DB000212
DB000208
Function send instruction
The BUSY coil turns ON when the
Executing
DB000210
CPU receives the command.
BUSY
Normal
The COMPLETE or ERROR coil turns
completion
DB000211
ON at completion of precessing.
Abnormal
completion
Specify PRO-TYP = 1 for Extended
DB000212
MEMOBUS or MELSEC.
Specify PRO-TYP = 2 for no protocol.
Normal completion
Abnormal completion
Processing result stored
DW00026
Status stored
DW00027
Execution wait
DB000208
Function send instruction
Execution wait
DB000209
The Send instruction can be issued
after 60 seconds have elapsed.
7-30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents