![NAiS FP2 Скачать руководство пользователя страница 73](http://html2.mh-extra.com/html/nais/fp2/fp2_technical-manual_3062214073.webp)
6-9
6.5 Data Transmissio n F159 (MTRN) Instruction
Communication with external devices is handled through the data registers located in the CPU unit.
Data to be output is stored in the register used as the send
buffer (DT), and when the F159 (MTRN) instruction is
executed, the data is output from the COM port specified
by the MCU installed in the specified slot.
The MCU starts the data transmission within 10 µs right
after the F159 (MTRN) instruction is executed (when
PC(PLC) link is performed, within approx. 500 µs at
maximum).
Sample program for sending data
The following program transmits the characters “ABCDEFGH (Hex)” to an external device using COM
port 1 in the slot 2.
Data table for transmission (send buffer)
The data table is specified using F159 (MTRN) instruction.
The program described above is executed in the following sequence.
1) “ABCDEFGH” is converted to an ASCII code and stored in a data register.
2) The data is sent from COM port 1 using the F159 (MTRN) instruction.
Explanatory diagram
Содержание 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...