Flag Operation In Program Controlled Communication - Panasonic FP Series Programming Manual

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data types
Variable
Data type
s_Port
ANY16
d1_Start
d2_End
Operands
For
s_Port
d1_Start
d2_End
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
In this example the function is programmed in ladder diagram (LD). The same POU header is used
Example
for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD

22.4.3 Flag operation in program controlled communication

Program controlled communication provides for half duplex communication, i.e. communication is possible in
both directions, but not simultaneously. Sending can be controlled by the "transmission done" flag. Reception
can be controlled by the "reception done" flag or by directly evaluating the receive buffer.
The flags are special internal relays which turn to TRUE or to FALSE under specific conditions. They can be
evaluated using special functions or system variables.
Function
Specification of slot number (high byte) and port number (low byte)
of the MCU to which the data is transmitted.
16#xx01: COM1 on MCU in slot 16#xx
16#xx02: COM2 on MCU in slot 16#xx
Starting address of the receive buffer
Ending address of the receive buffer
Relay
WX
WY
WR
WL
-
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
Data transfer via communication ports
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 the specified address using the index
modifier exceeds a limit
 the MCU unit does not exist in the
specified slot
 the specified communication port does
not exist
Constant
dec. or hex.
-
-
757

Advertisement

Table of Contents
loading

Table of Contents