Data to be sent/received with PLC
Remember the following when accessing data in the send and receive buffers:
-
If a header has been chosen in the communication format settings, the code STX (H02) will
automatically be added at the beginning of the data begin sent.
-
The data without the code STX at the reception is stored in the receive buffer, and the “reception done”
flag turns on when the terminator (end code) is received. When the terminator has been set to “None”,
the “reception done” flag does not work.
However, if the code STX is added in the middle of the data, the number of received byte is cleared to
0, and the data is stored from the beginning of the receive buffer again.
-
A terminator is automatically added to the end of the data being sent.
-
There is no terminator on the data stored in the receive buffer.
Sending data:
Data written to the send buffer will be sent just as it is.
Example:
The data “12345” is transmitted as an ASCII code to an external device.
1. Data sent using the F95 (ASC) instruction should be converted to ASCII code data.
2. If DT100 is being used as the start address of send buffer, data will be stored in sequential order in
the data registers starting from the next register (DT101), in two-byte units consisting of the upper and
the lower byte.
Receiving data:
The data of the receive area being read is ASCII code data.
Example:
The data “12345
C
R
” is transmitted from a device with RS232C port.
If DT200 is being used as the receive buffer, received data will be stored in the registers starting from
DT201, in sequential order of first the lower byte and then the upper byte.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание FP-X0 L14R
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 10: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 18: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 40: ...AFPX E30R AFPX E30RD AFPX E30T Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 43: ...Chapter 4 I O Allocation Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 48: ...4 6 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 49: ...Chapter 5 Installation and Wiring Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 65: ...Chapter 6 Communication Functions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 118: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 141: ...Sample program Control code Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 144: ...Sample program Control code Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 146: ...Sample program Control code Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 148: ...Sample program Control code Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 150: ...7 32 Sample program Control code Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 154: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 155: ...Chapter 8 Security Functions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 167: ...Chapter 9 Other Functions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 183: ...Chapter 11 Precautions During Programming Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 196: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 197: ...Chapter 12 Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 210: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 211: ...Chapter 14 Appendix Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 288: ...14 7 ASCII Codes Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 289: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...