|
<< Click to Display Table of Contents >>
How to Configure a Device from FX Series Using an FX-485PC-IF Converter and an FX-485ADP Adapter |
To connect a computer to a device from FX series using an FX-485PC-IF converter and an FX-485ADP adapter, the transmission specification and the transmission control protocol are defined on special register D8120. Transmission specification is adjusted by using bits from b0 to b7 of this register. Configuration data is described on the next table.
Configuration of transmission specification
Bit |
Description |
Configuration |
|---|---|---|
b0 |
Data length |
•b0: 0 (7 bits) •b0: 1 (8 bits) |
b1 b2 |
Parity |
•b2, b1: 0, 0 (No parity) •b2, b1: 0, 1 (Even parity) •b2, b1: 1, 1 (Odd parity) |
b3 |
Stop bits |
•b3: 0 (1 bit) •b3: 1 (2 bits) |
b4 b5 b6 b7 |
Transmission speed (baud rate) |
•b7, b6, b5, b4: 0, 0, 1, 1 (300 bps) •b7, b6, b5, b4: 0, 1, 0, 0 (600 bps) •b7, b6, b5, b4: 0, 1, 0, 1 (1200 bps) •b7, b6, b5, b4: 0, 1, 1, 0 (2400 bps) •b7, b6, b5, b4: 0, 1, 1, 1 (4800 bps) •b7, b6, b5, b4: 1, 0, 0, 0 (9600 bps) •b7, b6, b5, b4: 1, 0, 0, 1 (19200 bps) |
Transmission control protocol is adjusted by using bits from b8 to b15 of this register. Configuration data is described on the next table.
Configuration of transmission control
Bit |
Description |
Configuration |
|---|---|---|
b8 to b12 |
Not used |
All these bits are configured with value 0 (zero) |
b13 |
Checksum |
•b13: 0 (zero, does not add a checksum code) •b13: 1 (one, add a checksum code automatically) |
b14 |
Protocol |
•b14: 0 (zero, does not use a dedicated protocol) •b14: 1 (one, uses a dedicated protocol) |
b15 |
Transmission control protocol |
•b15: 0 (zero, uses a dedicated protocol format 1) •b15: 1 (one, uses a dedicated protocol format 4) |
The station number is configured by the special register D8121, by selecting a value in the range between 00H and 0FH. Every station must have a unique number.
A time-out duration is configured by the special register D8129, by selecting a value in the range between 1 (one) and 255 (from 10 to 2555 ms). If a device does not receive any messages from a computer after expiring the duration of that time-out, then this device resets communication.