EasyManuals Logo

NAiS FP Series User Manual

NAiS FP Series
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #172 background imageLoading...
Page #172 background image
FPΣ
9.1 General-purpose Serial Communication
9-5
9.1.2 Program of General-purpose Serial Communication
TheF159(MTRN) instructionisusedtosendandreceivedatausingtheCOM. port.The
F159 (MTRN) instruction is used only with the FPΣ, and is an updated version of the
earlier F144 (TRNS) instruction that allows multiple communication ports to be
accommodated. Please be aware that the earlier F144 (TRNS) instruction cannot be
used with the FPΣ.
F159 (MTRN) instruction
Data is sent to and received from an external device through the specified COM. port.
Starting from DT100
are sent from the COM.1 (K1) port.
the contents of 8 bytes
Serial data communication
R0 nSD
F159 MTRN , DT 100 , K8 , K1
Devices that can be specified for S Only data registers (DT) can be specified as the.......
transmission buffer.
Devices that can be specified by n WX, WY, WR, WL, SV, EV, DT, LD, I (I0 to ID), K, H........
Devices that can be specified by D Only the K constants (only K1 and K2).......
Figure 165: FPΣ F159 (MTRN) instruction (program)
Transmission of data
The amount of data specified by “n” is sent to the external device from among the data
stored in the data table starting with the area specified by “S”, through the COM. port
specified by “D”. Data can be sent with the start code and end code automatically
attached. A maximum of 2,048 bytes can be sent. When the above program is run, the
eight bytes of data contained in DT101 to DT104, stored in the transmission buffer
starting from DT100, are sent from the COM. 1 port.
Reception of data
Reception of data is controlled by turning the reception done flag “R9038 or R9048” on
and off. The received data is stored in the received buffer specified by the system
register. Data can be received when the F159 (MTRN) instruction turns the reception
done flag “R9038 or R9048” off.

Table of Contents

Other manuals for NAiS FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the NAiS FP Series and is the answer not in the manual?

NAiS FP Series Specifications

General IconGeneral
BrandNAiS
ModelFP Series
CategoryController
LanguageEnglish

Related product manuals