Mitsubishi Electronics SH-080007 Network Card User Manual


 
App. - 45 App. - 45
MELSEC-Q
APPENDIX
(2) Program example
The user frames No. 3F2
H
, 3F3
H
, 41B
H
and 8001
H
are assumed to have been
registered in advance.
<Transmission command>
<Setting of transmission data>
<Transmission user frame designation command>
<Transmission request>
<Processing for normal completion>
<Processing for abnormal completion>
<Abnormal completion: Read of data transmission result>
Sets the transmission data.
Transfers the setting value to the
communication area of the buffer
memory.
Transmission user frame designation
command
Abnormal completion of REMTO
instruction
Sets the CR/LF output.
Sets the output head pointer.
Sets the output count.
First output frame No. designation
Second output frame No. designation
Third output frame No. designation
Fourth output frame No. designation
Fifth output frame No. designation
Transfers the setting values to the
transmission user frame designation
area of the buffer memory.
Turns ON the transmission request
signal.
Abnormal completion of REMTO
instruction
Normal completion of transmission
Turns OFF the transmission request
signal.
Abnormal completion of transmission
Transmission result acquisition
instruction
Reads the data transmission result
of the buffer memory to D20.
Normal completion of REMFR
instruction
Abnormal completion of REMFR
instruction
Turns OFF the transmission request
signal.
Changes the transmission
command into pulses.
Sets the transmission data count.