Msg-Snd Function - YASKAWA MP920 User Manual

Machine controller
Table of Contents

Advertisement

8 Example Communications Module Applications

8.2.5 MSG-SND Function

8.2.5

MSG-SND Function

The following diagram shows an OMRON Master MSG-SND ladder logic program for the
MP920 and CP-217.
One scan at startup
Low-speed scan (DWG L): SB000003
SB000003
High-speed scan (DWG H): SB000001
IFON
Set the unit number set in SYSMAC DM0923.
00001
00003
00000
00100
00000
00000
00000
00000
00000
00000
IEND
Send busy
Executing
monitoring timer
DB000210
T
003.00
DW00031
Stop command
DB000202
Stop command Stop counter
DB000202
DB00021B
INC
DW00023
Send start
Send cycle timer
DB000200
T
001.00
DW00030
Normal
Abnormal
completion
completion
Send start
DB000200
DB000211
DB000212
Command
DB000201
Command
DB000201
EXECUTE
Stop
DB000202
ABORT
DEV-TYP
00005
PRO-TYP
00001
CIR-NO
00001
CH-NO
00001
SEND PARAM
Normal completion
DB000211
Normal counter
INC
DW00024
Abnormal completion
DB000212
IFON
Error counter
INC
DW00025
DW00000
DW00001
IEND
DEND
→ DW00002
→ DW00004
→ DW00005
→ DW00006
→ DW00007
→ DW00008
→ DW00009
→ DW00010
→ DW00011
→ DW00012
→ DW00024
→ DW00025
Normal
Abnormal
Stop
completion
completion
command
DB000211
DB000212
DB000202
Transmission start
DB000200
Stop
Command
command
DB000202
MSG-SND
Executing
DB000210
BUSY
Normal completion
DB000211
COMPLETE
Abnormal completion
DB000212
ERROR
The circuit number
changes according to the
system configuration.
DA00000
→ DW00026
→ DW00027
8-16
At startup, set the parameters in the first
scan.
Remote station number setting
Connection code setting (readout)
Data address setting (address 0)
Data size setting (100 words)
Remote CPU No. setting
Coil offset setting
Input relay offset setting
Input register offset setting
Holding register offset setting
System register clear
Normal pulse counter clear
Error counter clear
Force stop if still not completed 3 seconds
after the Send instruction is issued.
Stop counter added when the Stop
command is issued.
Send started at 1-second intervals.
Function Send instruction
Sends a message to a remote station.
The executing coil turns ON when the CPU
receives the command.
The normal completion or abnormal completion
coil turns ON at processing completion.
Use PRO-TYP 1 (MEMOBUS communications).
CIR-NO (circuit number) 1 (depending on the connection port)
CH-NO (channel number) 1 (fixed at 1 with the 217IF Module)
Turns ON at receive completion of a query message and at
send completion of a response message.
Normal pulse counter added
Ended by a transmission error
Error pulse counter added
Processing result stored
Status stored

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents