YASKAWA MP920 User Manual page 177

Machine controller
Table of Contents

Advertisement

Ladder Logic Programming to Receive Messages (MSG-RCV)
The following diagram shows an example of a slave function (MSG-RCV) ladder logic program.
$FSCAN- L
SB000003
L scan:SB 3
H scan:SB01
IFON
FOR 1 =00000 to 00031 by 000001
00000
FEND
00001
00000
00000
00000
00000
00000
32767
IEND
Executing
Stop timer
60.0 DW00030
DB00021 0
T
St o p
command
DB000202
$ON-COIL
SB000004
DB000202
DB000211
Command
DB000201
MSG-RCV
DB000201
EXECUTE
DB000202
ABORT
COMPLETE
DEV-TYP
00006
PRO-TYP
00001
CIR-NO
00001
CH-NO
00001
PARAM
DA00000
DB000211
INC
DW00024
Abnorma l
completio n
DB000212
IFON
INC
DW00025
Processing result
DW00000
Status
DW00001
IEND
Abnormal
Execution stop
completion
DB000212
DB000209
DB000200
DB000202
Execution
wait
DB000208
Execution
Execution stop timer
wait
60.0 DW00031
DB00020 8
T
IEND
At startup, set the parameters in
the first scan.
DW00001
DW register zero clear
DW00002
Connection No. setting
DW00008
Coil offset setting
DW00009
Input relay offset setting
DW00010
Input register offset setting
DW00011
Holding register offset setting
DW00012
Write range LO
DW00013
Write range HI
Normal
Abnorma l
completio n
completion
DB000202
DB000211
DB000212
Force-stop by ABORT if no response is
received 60 seconds after receive starts .
Execution
Abnormal
wait
completion
DB000212
DB000208
DB000201
Receive start
Executing
DB000210
BUSY
The BUSY coil turns ON when the
CPU receives the command.
DB000211
The COMPLETE or ERROR coil turns
ON at completion of processing.
Abnormal
completion
DB000212
Specify PRO-TYP= 1 for Extended
ERROR
MEMOBUS or MELSEC.
Specify PRO-TYP= 2 for no protocol.
Normal completion
Abnormal completion
DW00026
Processing result stored
Status stored
DW00027
Execution wait
DB000208
Function send instruction
Execution stop
DB000209
The Receive instruction can be issued
after 60 seconds have elapsed.
7-31
7.6 Connecting 218IF Modules
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents