7.4 Communication Function 2: General-purpose Serial
Communication
7.4.1 General-purpose Serial Communication
Overview
•
In general-purpose serial communication, data is sent and received over the COM ports to and from an
external device such as an image processing device or a bar code reader.
•
Data is read from and written to an external device connected to the COM port by means of an FP-X
program and the FP-X data registers.
Outline of operation
To send data to and receive it from an external device using the general-purpose serial communication
function, the data transmission and data reception functions described below are used. The F159
(MTRN) instruction and the “reception done” flag are used in these operations, to transfer data between
the FP
Σ
and an external device.
Sending data
Data to be transmitted from the PLC is stored in the data register used as the send buffer (DT). When
F159 (MTRN) is executed, the data is output from the COM port.
•
The terminator specified in the system
register is automatically added to the data
that has been sent.
•
The maximum volume of data that can be
sent is 2048 bytes.
Receiving data
Data received from the COM port is stored in the receive buffer specified in the system register, and the
“reception done” flag goes on. Data can be received whenever the “reception done” flag is off.
•
When data is being received, the “reception
done” flag is controlled by the F159 (MTRN)
instruction.
•
No terminator is included in the stored data.
•
The maximum volume of data that can be
received is 4096 bytes.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание AFPX-C14P
Страница 6: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 12: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 28: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 51: ...AFPX C14PD AFPX C30T AFPX C30P Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 52: ...AFPX C30TD AFPX C30PD AFPX C60T Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 54: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 63: ...AFPX E30R AFPX E30RD AFPX E30T Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 67: ...Chapter 4 I O Allocation Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 73: ...Chapter 5 Installation and Wiring Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 102: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 103: ...Chapter 6 Tool Port and USB Port Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 125: ...Chapter 7 Communication Cassette Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 239: ...Chapter 8 Application Cassette Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 295: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 300: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 309: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 311: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 314: ...Program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 347: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 352: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 361: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 363: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 366: ...Program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 371: ...Chapter 11 Security Functions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 384: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 385: ...Chapter 12 Other Functions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 398: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 410: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 411: ...Chapter 14 Precautions During Programming Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 430: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 431: ...Chapter 15 Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 448: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 449: ...Chapter 16 Dimensions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 453: ...Chapter 17 Appendix Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 543: ...17 7 ASCII Codes Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...