![NAiS FP2 Скачать руководство пользователя страница 78](http://html2.mh-extra.com/html/nais/fp2/fp2_technical-manual_3062214078.webp)
6-14
6.6.1 Data to be Sent/Received with MCU
Remember the followings when accessing data in the MCU 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 is received.
However, if the code STX is added in the middle of the data, the data is stored from the beginning of
the receive buffer.
•
A terminator is automatically ad ded to the end of the data being sent.
•
There is no terminator on the d ata 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 a device with RS232C port.
1. Data sent using the F95 (ASC) instruction should be converted to ASCII code data.
2. If DT100 is being used as the 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:
Data received using F161 (MRCV) instruction will be copied as it is and stored in specified data registers.
Example:
The data “12345
C
R
” is transmitted from a device with RS232C port.
•
If DT200 is being used as the b eginning of 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.
Содержание FP2
Страница 2: ......
Страница 8: ......
Страница 9: ...Chapter 1 Functions and Restrictions of the Unit...
Страница 14: ...1 6...
Страница 15: ...Chapter 2 Specifications and Functions...
Страница 29: ...Chapter 3 Installation and Wiring of Communication Blocks...
Страница 35: ...Chapter 4 Communication Function...
Страница 36: ...4 2...
Страница 44: ...4 10 4 4 4 Flow Chart...
Страница 46: ...4 12...
Страница 47: ...Chapter 5 Communication Function PC PLC Link...
Страница 65: ...Chapter 6 Communication Function General purpose Serial communication...
Страница 94: ...6 30...
Страница 95: ...Chapter 7 Communication Function Computer link...
Страница 108: ...7 14...
Страница 109: ...Chapter 8 Applications...
Страница 118: ...8 10...
Страница 119: ...Chapter 9 Specifications...
Страница 139: ...Chapter 10 Dimensions and Sample Programs...
Страница 141: ...10 3 10 1 2 Communication Blocks FP2 CB232 AFP2803 FP2 CB422 AFP2804 FP2 CB485 AFP2805...
Страница 142: ...10 4...