![NAiS FP2 Technical Manual Download Page 113](http://html2.mh-extra.com/html/nais/fp2/fp2_technical-manual_3062214113.webp)
8-5
8.2.1
Example of Communication Condition Setting using F159 (MTRN) Instruction
When the following conditions are specified for the COM. 1 port in the slot 0.
Unit No.
: K3
: 3
Baud rate
: K9
: 115200 bps
Character bit
: K1
: 8 bits
Parity
: K3
: Even
Stop bit length
: K0
: 1 bit
RS/CS
: K0
: Invalid
Send wWaiting
: K100
: 1 ms
Header STX
: K0
: not exist
Terminator
: K3
: ETX
Terminator setting time
: K0
: Unnecessary
Initialize modem
: K0
: No
Explanation of program operation
If R0 is turned on when MCU is in the waiting status for transmission, the above communication
conditions are specified for the COM. 1 port in the slot 0.
Key Point:
•
Specify “22 bytes” for the numb er of bytes of setting data when specifing the communication
conditions.
•
All communicaiton conditions fo r registers should be specified all at once in advance in order to set the
communication conditions.
•
The head of register (DT10 in th e example) specified using F159 (MTRN) instruction is used by the
system. Valid data should be specified from the next address (DT11 in the example).
•
Use the default settings for the conditions which is not needed to be set.
•
Specify the settings for COM. 1 port and COM. 2 port separately.
•
Some conditions cannot be cha nged depending on operating modes.
Reference:
<Column of “Settable operation mode” in 8.2 Setting Communication Conditions and
Monitoring>
Summary of Contents for FP2
Page 2: ......
Page 8: ......
Page 9: ...Chapter 1 Functions and Restrictions of the Unit...
Page 14: ...1 6...
Page 15: ...Chapter 2 Specifications and Functions...
Page 29: ...Chapter 3 Installation and Wiring of Communication Blocks...
Page 35: ...Chapter 4 Communication Function...
Page 36: ...4 2...
Page 44: ...4 10 4 4 4 Flow Chart...
Page 46: ...4 12...
Page 47: ...Chapter 5 Communication Function PC PLC Link...
Page 65: ...Chapter 6 Communication Function General purpose Serial communication...
Page 94: ...6 30...
Page 95: ...Chapter 7 Communication Function Computer link...
Page 108: ...7 14...
Page 109: ...Chapter 8 Applications...
Page 118: ...8 10...
Page 119: ...Chapter 9 Specifications...
Page 139: ...Chapter 10 Dimensions and Sample Programs...
Page 141: ...10 3 10 1 2 Communication Blocks FP2 CB232 AFP2803 FP2 CB422 AFP2804 FP2 CB485 AFP2805...
Page 142: ...10 4...