
Chapter 8 Communication Functions
8-47
8.2.3 Instruction
1) User defined communication instruction(SNDCOM)
Available Device
Flag
Instruction
M P K L F T C S D
#
D
integer
No. of
steps
Error
(F110)
Zero
(F111)
Carry
(F112)
Ch
○
n1
○
○
○
○
○
○
○
○
○
○
D
○
○
○
○
○
○
7
○
Ch
Designated communication channel
n1
Frame lists which is designated at parameter
Error
(F110)
Error flag turns on when designating area is
over and the instruction isn’t executed
D
Device which the communication status is stored
■ SNDCOM Ch n1 D
(1) Function
•
When the execution condition is on, the communication starts with protocol at parameter which is designated early.
•
‘Ch’ is communication channel and ‘n’ is a frame number at parameter which is designated
•
‘D’ is a device which the communication status is stored.
(2) example of program
•
When input condition is on, channel 1 stars communication with protocol at user defined parameter rnumber 3.
•
The communication state is stored M000 and the format of M000 Iis as below
b
it 15 bit 8 bit 1 bit 0
•
Done bit : When transfer is completed normally, this bit turns on during 1 scan.
•
Error bit : When communication error occurs, ,this bit turns on.
•
Error code : When error bit turns on, the error code is stored.
Error code (1 byte)
Error bit
Done bit
SNDCOM
User defined communication instruction
Flag Set
Designation
Содержание MASTER-K 120S Series
Страница 26: ...Chapter 4 Names of Parts 4 3 2 K7M DRT60U 3 K7M DT60U 4 1 2 40 points main unit Standard 1 K7M DR40U ...
Страница 27: ...Chapter 4 Names of Parts 4 4 2 K7M DRT40U 3 K7M DT40U 4 1 3 30 points main unit Standard 1 K7M DR30U ...
Страница 28: ...Chapter 4 Names of Parts 4 5 2 K7M DRT30U 3 K7M DT30U 4 1 4 20 points main unit Standard 1 K7M DR20U ...
Страница 29: ...Chapter 4 Names of Parts 4 6 2 K7M DRT20U 3 K7M DT20U 4 1 5 30 points main unit Economic 1 K7M DR30UE ...
Страница 138: ...Chapter 7 Usage of Various Functions 7 54 c Program ...
Страница 306: ...Appendix 3 External Dimensions App3 2 2 Slim type G7E DC08A G7E RY08A G7F ADHB G7F DA2V G7F RD2A ...