Panasonic FP Series Programming Manual page 769

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer via communication ports
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
 If the slave data is not available in the user area of the
master, please use either the instruction
F145_WRITE_DATA_TYPE_OFFS (see page 769) or the
F145F146_MODBUS_COMMAND (see page 777).
 For another station number outside the range (0-99) or
another start register as available in the table of modbus
commands (see page 777), please use the modbus function
blocks of the Modbus Library for FPWIN Pro
(NCL-MODBUS-LIB).
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
GVL
In the global variable list you define variables that can be accessed by all POUs in the project.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
The system variable sys_bPulse1s is copied to bBool1. If bWrite1 and
sys_bIsComPort1F145F146NotActive are set to TRUE, bBool1 is written to the output Y38 of
slave 2.
LD
768
Set
permanently
permanently
If
 port 0 (global transmission) gets no
response from COM1 or COM2.
 slave data or master data exceeds
the available address range.
 the communication mode (see page
712) is not set to
MEWTOCOL-COM Master/Slave or
Modbus RTU Master/Slave.
 the COM port selected requires a
communication cassette that has not
been installed.

Advertisement

Table of Contents
loading

Table of Contents