Sample Program For Master Communication - Panasonic FP0R User Manual

Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

Communication
Lower baud rates of 300, 600, and 1200bit/s can be specified using the SYS1
instruction. However, this will not change the setting value of the system
register.
When using the RS485 port, a baud rate of 19200bit/s or 115200 bit/s is
possible. Set the baud rate in the system registers and set the DIP switch on
the bottom of the unit to the same setting.
Programming
There is no programming required on the slave. Only the station number and the
communication parameters must be set in the system registers. The program for the master
side must send and receive commands according to the MEWTOCOL-COM protocol.
MEWTOCOL-COM contains the commands used to control and monitor the slave operation.
If a software program such as PCWAY is used on the computer side, PLC data can easily be
read and written without having to think about the MEWTOCOL-COM protocol.

7.5.7 Sample Program for Master Communication

Use the F145_WRITE and F146_READ instructions for the MEWTOCOL-COM master
function. Be sure to set the COM port used in the program to "MEWTOCOL-COM
Master/Slave" in the system registers. The master function is only available via the COM port.
GVL
POU Header
In order to have consistent data in the master project and in the slave project, the common
data should be kept in the GVL of a common library.
124

Advertisement

Table of Contents
loading

Table of Contents