EasyManua.ls Logo

Panasonic FP-E - Page 687

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 423
Program
Specify the starting address of the transmission data table in “S”, and the number of data bytes to be
transmitted in “n”.
R0
F1 DMV, H44434241, DT101
F1 DMV, H48474645, DT103
F159 MTRN, DT100, K 8, K 1
Write the transmission
data to the data table.
Transmit the data in
the data table.
R1
DF
1
1
Operation
When the execution condition of the F159(MTRN) instruction turns on, operation is as follows when the
transmission done flag (R9039/R9049) is on:
1) “n” is preset in “S”. The reception done flag (R9038/R9048) is turned off, and the reception data
number is cleared to “0”.
2) The set data is transmitted in order from the lower−order byte in “S+1” of the table.
− During transmission, the transmission done flag (R9039/R9049) turns off.
− If system register 413 or 414 is set to start code with STX, a start code is automatically added to the
beginning of the data.
− The end code specified in system register 413 or 414 is automatically added to the end of the data.
ABCDEFGH(
C
R
)
DT101 DT102 DT103 DT104
Transmission
data
R9039
R9049
Execution condition
(trigger) R0
During transmission
F159 (MTRN)
execution
on
off
on
off
During this interval the F159(MTRN) instruction cannot be executed.
3) When all of the specified quantity of data has been transmitted, the “S” value is cleared to “0” and the
transmission done flag (R9039/R9049) turns on.
When you do not wish to add an end code to transmissions, use one of the
following methods:
Specify the number of bytes to be transmitted using a negative number.
If you also do not wish to add an end code to receptions, set system register 413 or 414 to “no end code”.
Example:
Program for transmitting 8 bytes of data without adding an end
code
R0
DF
1
1
F159 MTRN, DT100, K−8, K1
Specify “K−8”.
FPΣ/FP−X/FP0R
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com