Data transfer via communication ports
724
Part III FP Instructions
22.3 Getting the communication mode
You can check during RUN mode which communication mode has been set on the PLC. The following
communication modes can be determined: PLC Link (see page 724), program controlled communication (see
page 725), and MEWTOCOL-COM Master / Slave (see page 726).
There are three differe
nt ways to get the communication mode
:
1. Using PLC-independent system variables. There are different system variables for each port. For
detailed information on using system variables, please refer to Data transfer to and from special data
registers (see page 859).
2. Using PLC-indepe
ndent functions: The port number must be specified in a variable. The functions
IsPlcLink (see page 724) and IsProgramControlled (see page 726) are available.
3. Using spec
ial relays: The relay numbers vary depending on the COM port and the PLC type!
For details on getting the communication mode of an MCU, please refer to Getting the MCU communication
parameters (see page 729).
22.3.1 Checking for PLC link mode
PLC Link mode can be checked for the following devices:
FP, FP-X:
Port
name
Port
number
Special
internal relay
Function
name
System variable name Bit status
COM1 1 R9041 IsPlcLink (see
page 724)
sys_bIsComPort1PlcLink TRUE
MCU:
Port
name
Port number Function name DUT
COM1 16#xx01
COM2 16#xx02
IsPlcLink (see page
724)
MCU-STATUS_DUT.Com
municationMode=2 (see page
729)
xx = slot number (hexadecimal)