Download Machine Controller MP2000 Series 262IF-01 FL

Transcript
6.5 Programming Example
6.5.2 Word Block Data Write (Client)
Normal
completion
DB000211
Executing
DB000210
0014
0014
NL-1
Abnormal
completion
DB000212
Abort command
DB000202
TON[10ms]
Set
00300
Forced stop if processing is not completed
within 3 seconds after sending the Send
command.
Count DW00031
Abort command
DB000202
Abort command
DB000202
DB00021B
DB000400
0015
0020
NL-1
0016
0023
NL-1
0017
0024
NL-2
0018
0025
NL-1
IF
DB000400==true
Increments the stop counter
when the Abort command is sent.
INC
Dest DW00023
END_IF
Start sending
DB000200
Command
DB000201
0019
0026
NL-1
Starts sending every 1 second.
TON[10ms]
Set
00100
Count DW00030
Normal
completion
DB000211
Start sending
DB000200
0020
0029
NL-1
0021
0035
NL-1
Abnormal
completion
DB000212
Command
DB000201
Function Send command
Command
DB000201
MSG-SND
Execute DB000201
Abort
DB000202
Dev-Typ 00014
Busy
DB000210
Complete DB000211
Error
DB000212
Pro-Typ 00001
Cir-No 00001
Ch-No 00001
Param DA00000
Normal completion
0022
0036
NL-1
DB000211==true
0023
0037
NL-2
Dest DW00024
0024
0038
NL-1
Abort command
DB000202
Sends a message to the remote node.
The executing coil turns ON when
the CPU receives the command.
The normal completion or abnormal completion
coil turns ON at the completion of processing.
Pro-Type: Always 1 (MEMOBUS
communication)
Cir-No. (circuit number): 1 (Depends on the
connection port.)
Ch-No. (channel number): 1 (Use 1 to 10 for the
262IF-01.)
Turns ON after the query message is sent
and the response message is received.
IF
Increments the normal pass counter.
INC
END_IF
Abnormal completion
0025
0039
NL-1
DB000212==true
0026
0040
NL-2
Dest DW00025
0027
0041
NL-2
Source DW00000
0030
0044
NL-1
6-38
Stores the processing results.
STORE
DW00026
Stores the status.
STORE
Source DW00001
Dest
0029
0043
NL-1
Increments the abnormal pass counter.
INC
Dest
0028
0042
NL-2
Ended with transmission errors.
IF
DW00027
END_IF
END