Data transfer via communication ports
712
Part
III F
P
Instructions
22.1 Description of the communication modes
Data transmission and reception can be carried out using the following communication modes. The
communication mode is set in the system registers of the PLC.
MEWTOCOL-COM
This communication mode uses the proprietary MEWTOCOL-COM protocol to exchange data between a
master and one or more slaves. This is called 1:1 or 1:N communication. A 1:N network is also known as a
C-NET. There is a MEWTOCOL-COM master function and a MEWTOCOL-COM slave function. The side that
issues commands is called master. The slave receives the commands, executes the process and sends back
responses. The slave answers automatically to the commands received from the master, so no program is
necessary on the slave. The MEWTOCOL-COM master function is not supported by all PLCs.
The master can be a PLC or any external device supporting the master function. To use the built-in master
functionality of the PLC, select MEWTOCOL-COM Master/Slave in the system registers and implement a PLC
program. The applicable instructions are F145_WRITE_DATA (see page 766) and F146_READ_DATA.
The slave can be a PLC or any external device which supports the MEWTOCOL-COM protocol. To use the
built-in slave functionality of the PLC, select MEWTOCOL-COM Master / Slave in the system registers. For 1:N
communication in a C-NET, the station number must be specified in the system registers of the slave.
Modbus RTU
This communication mode uses the Modbus RTU protocol to exchange data between a master and one or more
slaves. This is called 1:1 or 1:N communication. There is a Modbus RTU master function and a Modbus RTU
slave function. The side that issues commands is called master. The slave receives the commands, executes
the process and sends back responses. The slave answers automatically to the commands received from the
master, so no program is necessary on the slave.
The Modbus protocol supports both ASCII mode and RTU binary mode. However, the PLCs of the FP Series
only support the RTU binary mode.
Program controlled mode
With program controlled communication, the user generates a program which governs the data transfer
between a PLC and one or more external devices connected to the communication port. By this, any standard
or user protocol can be programmed.
Typically, such a user program consists of sending and receiving the data. The data to be sent and the data
received are stored in data register areas defined as send and receive buffers.
Sending can be controlled by the "transmission done" flag. For detailed information, see Flag Operation in
Program Controlled Communication (see page 757).
For all PLC types
Sending includes generating the data for the send buffer and sending it using the
instruction F159_MTRN (see page 741). For detailed information, see Sending Data to
External Devices (see page 733).
The "transmission done" flag can be evaluated using the IsTransmissionDone (see page
763) function. Or use the system variable sys_bIsComPort1TransmissionDone,
sys_bIsComPort2TransmissionDone, or sys_bIsToolPortTransmissionDone, depending on
the port.
Receiving includes processing the data in the receive buffer and preparing the system to receive further data.
Reception can be controlled by the "reception done" flag or by directly evaluating the receive buffer. For detailed
information, see Flag Operation in Program Controlled Communication (see page 757).
For all PLC types
The "reception done" flag can be evaluated using the IsReceptionDone (see page 760)
function. Or use the system variable sys_bIsComPort1ReceptionDone,
sys_bIsComPort2ReceptionDone, or sys_bIsToolPortReceptionDone, depending on the
port. The end of reception can also be determined by time-out using the
IsReceptionDoneByTimeOut (see page 761) function or by checking the contents of the
receive buffer.
Содержание FP Series
Страница 27: ...Chapter 1 Basics ...
Страница 60: ...Chapter 2 Data transfer instructions ...
Страница 62: ...Chapter 3 Arithmetic instructions ...
Страница 88: ...Chapter 4 Bitwise Boolean instructions ...
Страница 93: ......
Страница 94: ...Chapter 5 Bit shift instructions ...
Страница 100: ...Bit shift instructions 99 Part II IEC Instructions LD ...
Страница 102: ...Bit shift instructions 101 Part II IEC Instructions LD ...
Страница 103: ......
Страница 104: ...Chapter 6 Comparison instructions ...
Страница 106: ...Comparison instructions 105 Part II IEC Instructions LD ...
Страница 108: ...Comparison instructions 107 Part II IEC Instructions LD ...
Страница 114: ...Chapter 7 Conversion instructions ...
Страница 136: ...Conversion instructions 135 Part II IEC Instructions Body with and without EN ENO ...
Страница 242: ...Conversion instructions 241 Part II IEC Instructions Body ...
Страница 244: ...Conversion instructions 243 Part II IEC Instructions Body ...
Страница 253: ......
Страница 254: ...Chapter 8 Selection instructions ...
Страница 261: ......
Страница 262: ...Chapter 9 String instructions ...
Страница 280: ...String instructions 279 Part II IEC Instructions LD ...
Страница 281: ......
Страница 282: ...Chapter 10 Date and time instructions ...
Страница 306: ...Chapter 11 Bistable instructions ...
Страница 311: ......
Страница 312: ...Chapter 12 Edge detection instructions ...
Страница 315: ......
Страница 316: ...Chapter 13 Counter instructions ...
Страница 324: ...Chapter 14 Timer instructions ...
Страница 341: ......
Страница 342: ...Chapter 15 Arithmetic instructions ...
Страница 360: ...Arithmetic instructions 359 Part III FP Instructions LD ST IF DF start THEN F35_INC increment_value END_IF ...
Страница 362: ...Arithmetic instructions 361 Part III FP Instructions LD ST IF DF start THEN F36_DINC increment_value END_IF ...
Страница 384: ...Arithmetic instructions 383 Part III FP Instructions LD ST IF DF start THEN F37_DEC decrement_value END_IF ...
Страница 431: ...Arithmetic instructions 430 Part III FP Instructions LD ST IF start THEN F87_ABS abs_value END_IF ...
Страница 433: ...Arithmetic instructions 432 Part III FP Instructions ST IF start THEN F88_DABS abs_value END_IF ...
Страница 449: ...Arithmetic instructions 448 Part III FP Instructions LD ST IF DF start THEN F85_NEG negotiate_value END_IF ...
Страница 508: ...Chapter 16 Bistable instructions ...
Страница 512: ...Chapter 17 Bitwise Boolean instructions ...
Страница 555: ......
Страница 556: ...Chapter 18 Bit shift instructions ...
Страница 603: ......
Страница 604: ...Chapter 19 Comparison instructions ...
Страница 622: ...Chapter 20 Conversion instructions ...
Страница 687: ...Conversion instructions 686 Part III FP Instructions LD ...
Страница 702: ...Chapter 21 Counter instructions ...
Страница 711: ......
Страница 712: ...Chapter 22 Data transfer via communication ports ...
Страница 785: ......
Страница 786: ...Chapter 23 Data transfer via network ...
Страница 798: ...Data transfer via network 797 Part III FP Instructions LD ...
Страница 805: ......
Страница 806: ...Chapter 24 Data transfer within the PLC ...
Страница 866: ...Chapter 25 Date and time instructions ...
Страница 877: ......
Страница 878: ...Chapter 26 Selection Instructions ...
Страница 883: ......
Страница 884: ...Chapter 27 Edge detection instructions ...
Страница 890: ...Chapter 28 High speed counter instructions ...
Страница 913: ......
Страница 914: ...Chapter 29 Timer instructions ...
Страница 937: ......
Страница 938: ...Chapter 30 Process control instructions ...
Страница 966: ...Process control instructions 965 Part III FP Instructions ...
Страница 970: ...Chapter 31 FP e display instructions ...
Страница 979: ......
Страница 980: ...Chapter 32 System register instructions ...
Страница 997: ......
Страница 998: ...Chapter 33 Special instructions ...
Страница 1007: ......
Страница 1008: ...Chapter 34 Program execution control instructions ...
Страница 1020: ...Chapter 35 Pulse output instructions ...
Страница 1091: ......
Страница 1092: ...Chapter 36 Analog unit instructions ...
Страница 1133: ......
Страница 1134: ...Chapter 37 GT panel instructions ...
Страница 1138: ...Chapter 38 High speed counter instructions ...
Страница 1164: ...High speed counter instructions 1163 Part IV Tool Instructions ...
Страница 1172: ...Chapter 39 Pulse output instructions ...
Страница 1177: ...Pulse output instructions 1176 Part IV Tool Instructions LD ...
Страница 1180: ...Pulse output instructions 1179 Part IV Tool Instructions LD ...
Страница 1185: ...Pulse output instructions 1184 Part IV Tool Instructions LD ...
Страница 1192: ...Pulse output instructions 1191 Part IV Tool Instructions LD ...
Страница 1195: ...Pulse output instructions 1194 Part IV Tool Instructions LD ...
Страница 1198: ...Pulse output instructions 1197 Part IV Tool Instructions LD ...
Страница 1245: ......
Страница 1246: ...Chapter 40 Appendix Programming Information ...
Страница 1306: ...Appendix Programming Information 1305 ...