INP-TN512644b-E
Instruction Manual
MICRO CONTROLLER X
COMMUNICATION
FUNCTIONS
(RS-485 Z-ASCII)
TYPE:PXR
-i-
CONTENTS
1. COMMUNICATION FUNCTIONS····································································································· 1
1.1 General············································································································································ 1
2. SPECIFICATIONS······························································································································· 2
2.1 Communication Specifications········································································································ 2
3. CONNECTION···································································································································· 3
3.1 Communication Terminal Allocation ······························································································ 3
3.2 Wiring············································································································································· 4
4. SETTING OF COMMUNICATION CONDITION·············································································· 5
4.1 Set Items ········································································································································· 5
4.2 Setting Operation Method ··············································································································· 6
5. Z-ASCII PROTOCOL·························································································································· 7
5.1 General············································································································································ 7
5.2 Composition of the Command Frame······························································································ 8
5.3 Response of Slave Station ············································································································· 10
5.4 Transmission Control Procedure ··································································································· 11
5.5 FIX Processing (Cautions in data write)························································································ 12
6. DETAILS OF COMMAND AND RESPONSE FRAMES ································································· 13
6.1
Data Read-out ······························································································································· 13
6.2 Data Write-in ································································································································ 16
7. ADRESS MAP AND DATA FORMAT ······························································································ 18
7.1 Data Format ·································································································································· 18
7.1.1 Transmission data format········································································································· 18
7.1.2 Handling of decimal point········································································································ 18
7.1.3 Data status during abnormal data input indication···································································· 19
7.1.4 Range of write-in data·············································································································· 19
7.2 Data Address Map························································································································· 19
7.3 Additional Explanation of Address Map ······················································································· 23
8. SAMPLE PROGRAM························································································································ 27
9. TROUBLESHOOTING ····················································································································· 32
10. APPENDIX········································································································································ 33
-1-
1. COMMUNICATION FUNCTIONS
1.1 General
・ PXR provides a communication function by RS-485 interface, by which it can transmit and receive data to and
from host computer, programmable controller, graphic display panel, etc.
・ The communication system consists of master station and slave stations. Up to 31 slave stations (PXR) can be
connected per master station.
Note that, because the master station can communicate with only one slave station at a time, a party to
communicate with must be specified by the "Station No." set at each slave station.
・In order that the master station and slave station can communicate, the format of the transmit/receive data must
coincide. Before using communication function, it is necessary for master station to create a program to operate
data transmit/receive in accordance to Z-ASCII protocol described in this manual.
・Please use on RS-232C ⇔ RS-485 converter in case of designating a personal computer or other devices which
have an RS-232C interface as a master station.
[RS-232C ⇔ RS-485 converter] (recommended article)
Type: KS-485 (non-isolated type)/SYSTEM SACOM Corp.
Type: SI-30A (isolated type)/SEKISUI ELECTRONICS Co., Ltd.
Caution:
When using the RS-232C ⇔ RS-485 converter, pay attention to cable connection between the converter and
master station. If the cable is not connected correctly, the master station and slave station cannot communicate.
In addition, be careful about communication settings such as baud rate and parity set for the converter.
-2-
2. SPECIFICATIONS
2.1 Communication Specifications
Item Specification
Electrical specification Based on ETA RS-485
Transmission system 2-wire, semi-duplicate
Synchronizing system Start-stop synchronous system
Connection format 1:N
Number connectable units Up to 31 units
Transmission distance 500m max. (total extension distance)
Transmission speed 9600bps
Data length 8 bits
Stop bit 1 bit
Data format
Parity none, even, odd (selectable)
Transmission code ASCII code
Error detection BCC (Addition)
Isolation Functional isolation between transmission circuit
and others (withstand voltage : 500V AC)