Download Print this page
Fuji Electric PXR Series Instruction Manual
Fuji Electric PXR Series Instruction Manual

Fuji Electric PXR Series Instruction Manual

Micro controller x communication functions (rs-485 z-ascii)
Hide thumbs Also See for PXR Series:

Advertisement

Quick Links

Instruction Manual
MICRO CONTROLLER X
COMMUNICATION
FUNCTIONS
(RS-485 Z-ASCII)
TYPE:PXR
INP-TN512644c-E

Advertisement

loading
Need help?

Need help?

Do you have a question about the PXR Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Fuji Electric PXR Series

  • Page 1 Instruction Manual MICRO CONTROLLER X COMMUNICATION FUNCTIONS (RS-485 Z-ASCII) TYPE:PXR INP-TN512644c-E...
  • Page 2 Note: GW-BASIC, Windows 95 and MS-DOS are registered trademarks of Microsoft Corporation. NOTICE 1. Exemption items from responsibility The contents of this document may be changed in the future without prior notice. We paid the utmost care for the accuracy of the contents. However, we are not liable for direct and indirect damages resulting from incorrect descriptions, omission of information, and use of information in this document.
  • Page 3: Table Of Contents

    CONTENTS COMMUNICATION FUNCTIONS····································································································· 1 General············································································································································ 1 SPECIFICATIONS······························································································································· 2 Communication Specifications········································································································ 2 CONNECTION···································································································································· 3 Communication Terminal Allocation ······························································································ 3 Wiring············································································································································· 4 SETTING OF COMMUNICATION CONDITION·············································································· 5 Set Items ········································································································································· 5 Setting Operation Method ··············································································································· 6 Z-ASCII PROTOCOL·························································································································· 7 General············································································································································ 7 Composition of the Command Frame······························································································ 8 Response of Slave Station ·············································································································...
  • Page 4: Communication Functions

    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.
  • Page 5: Specifications

    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 Number connectable units Up to 31 units Transmission distance 500m max. (total extension distance) Transmission speed 9600bps Data format Data length...
  • Page 6: Connection

    3. CONNECTION WARNING For avoiding electric shock and malfunctions, do not turn on the power supply untill all wiring have been completed. 3.1 Communication Terminal Allocation PXR3 Terminal number ⑮ ⑭ RS485 RS485 Signal name + - PXR4 Terminal number ⑦...
  • Page 7: Wiring

    3.2 Wiring ・Use twisted pair cables with shield. ・The total extension length of the cable is up to 500 m. A master station and up to 31 units of the PXR can be connected per line. ・Both ends of the cable should be terminate with terminating resistors 100Ω 1/2W. ・The shield wire of the cable should be grounded at one place on the master station unit side.
  • Page 8: Setting Of Communication Condition

    4. SETTING OF COMMUNICATION CONDITION In order that the master station and instrument (PXR) can correctly communicate, following settings are required. ・ All communication condition settings of the master station are the same as those of instruments (PXR). ・All instruments (PXR) connected on a line are set to "Station Nos. (STno)" which are different from each other. (Any "Station No."...
  • Page 9: Setting Operation Method

    4.2 Setting Operation Method The following example shows how to set the communication conditions. Example: Selecting an even parity and “STno=18” on a station. Indication Description operation Running state (PV/SV indication) P-n1 Press the SEL key for approximately 6 seconds. P-n1 appears and (6 seconds) No.
  • Page 10: Z-Ascii Protocol

    5. Z-ASCII PROTOCOL 5.1 General Transmission procedures according to the Z-ASCII protocol is as shown below 1) The master station sends a command frame in a pre-determined format to a slave station. 2) The slave station checks if the station No. in the received frame matches with the own station No. or not. 3)...
  • Page 11: Composition Of The Command Frame

    5.2 Composition of the Command Frame The communication frames (Command Frame & Response Frame) consist of the following 6 fields, and these 6 fields are always sent in order. ① ③ ⑤ ⑥ ② ④ Head code Station No. Command code Parameter End code Fig.
  • Page 12 Station No. [3 digits] This code means the slave station number. Only one slave, which has same station number as determined at "STno" parameter, accept the command from the master. Please refer to chapter 4 for the details of "STno" settings. Note : This code is always defined with 3 digits.
  • Page 13: Response Of Slave Station

    5.3 Response of Slave Station Response for normal command To a relevant message, the slave station creates and sends back a response frame which corresponds to the command frame. The composition of frame in this case is the same as in chapter 5.2. For details, refer to chapter 6.
  • Page 14: Transmission Control Procedure

    5.4 Transmission Control Procedure Transmission procedure of master station The master station must proceed to a communication upon conforming to the following items. (1-1) Before sending a command frame, provide 5 ms or more vacant status. (1-2) For sending, the interval between bytes of a command message is below 1 second. (1-3) Within 15 ms after sending a command message, the receiving status is posted.
  • Page 15: Precautions When Writing Data

    Precautions when Writing Data PXR contains internal nonvolatile memory (EEPROM) that is used to save the setting parameters. The data written to the nonvolatile memory (EEPROM) remains even after the power for PXR is turned off. Parameters that are written via communication are automatically saved in the internal nonvolatile memory (EEPROM). However, please note that there are two limitations as follows.
  • Page 16: Details Of Command And Response Frames

    6. DETAILS OF COMMAND AND RESPONSE FRAMES 6.1 Data Read-out Command Frame ① ② ( b) Read-out No.: (c) (Register No.) , Head Station No. Command Parameter code code code Command Code ① Command to start "Read-out" “RW” ASCII code : [52 , 57 Parameters ②...
  • Page 17 Parameters ② (a)Data codes : Always in 5 digits (Sign part : 1 digit + Numeral part : 4 digits) ·Sign part : Data value Character ASCII code Minus "-" Plus or 0 "0" ·Numeral part : Always in 4 digits Ex.
  • Page 18 [Example of data read-out command] To read-out 4 continuous data parameters starting from register No. 31001 (station No. =125) →PV, SV, DV and MV data will be read out <Condition> Decimal point position = 1 (parameter P-dP = 1) Command Frame :...
  • Page 19: Data Write-In

    6.2 Data Write-in Command Frame ① ② (Data code:Always (Register No.) , in 5 digits) Command Head code Station No. Parameters End code BCC code Command Code ① Command to start "Write-in" “WW” ASCII code : [57 , 57 Parameters ②...
  • Page 20 [Example of data Write-in command] To write-in "85" into registered No.41032 (Upper limit of set value). (station No. =15) <Condition> Decimal point position = 0 (parameter P-dP = 0) Command Frame Sign part: 0 (value more than 0) : 0085 (high order 0 added) 5 CR LF Response Frame :...
  • Page 21: Adress Map And Data Format

    7. ADRESS MAP AND DATA FORMAT 7.1 Data Format 7.1.1 Transmission data format With this protocol, all data is sent/received in ASCII codes. 7.1.2 Handling of decimal point Transmission data has no decimal point, so, it is necessary for the master station to perform the following treatment. (1) Delete decimal point(s) from data to be transmit.
  • Page 22: Data Status During Abnormal Data Input Indication

    7.1.3 Data status during abnormal data input indication When "UUUU" or "LLLL" is displayed on the face panel on account of over-range, under-range or input open circuit for example, PV read-out value is 105% or -5% of input range. Presence of any input abnormality via communication can be detected by: "Register No.
  • Page 23 Remarks or Register Write-in data Affected by Type Memory contents Read-out data corresponding setting range input range parameter 41021 Word (Do not use) 41022 Word Input filter time constant 0 to 9000(0.0 to 900.0 sec) P-dF 0: Disable RCJ compensation (do not perform reference cold junction 41023 Word RCJ yes/no compensation)
  • Page 24 Remarks or Register Write-in data Affected by Type Memory contents Read-out data corresponding setting range input range parameter 41065 Word Ramp/soak No. 1 ramp time TM1r 41066 Word Ramp/soak No. 1 soak time TM1S 41067 Word Ramp/soak No. 2 ramp time TM2r 41068 Word Ramp/soak No.
  • Page 25 Remarks or Register Write-in data Affected by Type Memory contents Read-out data corresponding setting range input range parameter DSP5 41105 Word 0 to 255 dSP5 (parameter mask designation) DSP6 41106 Word 0 to 255 dSP6 (parameter mask designation) DSP7 41107 Word 0 to 255 dSP7 (parameter mask designation)
  • Page 26: Additional Explanation Of Address Map

    Notes) ・ For details of * ② to * ⑥ in the table, refer to Section 7.3. ・ The area marked (Do not use) is a reserve area. Do not write in there. ・ Register numbers 31002 (currently used SV) and 41003 (face panel set SV) do not become the same value while switching-SV is active or ramp/soak is under way.
  • Page 27 *② Register number 41087 (read-out/write-in area) Contents of the communication DI action Used for requesting a DI action via communication. Once written in, the contents remain held unless the power is turned off or another value is written in. Pay attention to this point particularly when canceling the alarm latching.
  • Page 28 *④ Register numbers 31008 (read-out only area) Input/main unit abnormal status Contents Read-out 0 Input Lower open-circuit 0: Lower open-circuit absent 1: Lower open -circuit present 1 Input Upper open-circuit 0: Lower open-circuit absent 1: Lower open -circuit present 2 Input under-range 0: Under-range absent 1: Under-range present 3 Input over-range...
  • Page 29 *⑥ Register numbers 31009 (read-out only area) Ramp/soak current tuning position Read-out Indication of parameter Running position (status) data “STAT” 0 oFF Stop status of ramp/soak 1 1-rP No.1 ramp time 2 1-Sk No.1 soak time 3 2-rP No.2 ramp time 4 2-Sk No.2 soak time 5 3-rP...
  • Page 30: Sample Program

    8. SAMPLE PROGRAM This section concerns data read-out/write-in sample program by GW-BASIC* which operated on Windows 95* MS-DOS* PROMPT. Note that the program shown here is for reference for you to create a program and not for guaranteeing all actions. Before executing the program, make sure of the communication conditions in the following procedure.
  • Page 31 Example of data read-out How to Read-out PV, SV (currently used), DV, MV (control output 1) in one time. (From Read-only memory) Head code : ”:” Read-out start No. Command code : RW Read-out resister No. : 31001 Number of read out data End code : CR, LF 1000 '-------------------------------------------------------...
  • Page 32 1900 1910 '------------- Result Display --------------------------- 1920 PRT.RESULT 1930 In case of decimal point position (P-dP) =1 1940 PRINT 1950 PTR=7 'Data position in receive frame 1960 PV$=MID$(RXFRM$,PTR,5) : PTR=PTR+6 'Take-out lst data 1970 SV$=MID$(RXFRM$,PTR,5) : PTR=PTR+6 'Take-out 2nd data 1980 DV$=MID$(RXFRM$,PTR,5) : PTR=PTR+6 'Take-out 3rd data 1990 MV$=MID$(RXFRM$,PTR,5)
  • Page 33 Example of data write-in How to set lower limit of input scale as “-10.0”. (Decimal point position setting, P-dP=1) Head code : ”:” Write-in startion No. Command code : WW Write-in resister No. : 41018 Number of write-in data End code : CR, LF 1000 '------------------------------------------------------- 1010 ' WRITE DATA...
  • Page 34 1800 'ER.MESSAGE 1810 PRINT "Communication error" 1820 END 1900 1910 '------------- Result Display --------------------------- 1920 'PRT.RESULT 1930 PRINT 1940 PRINT "Normal response !” 2040 END 3000 ' 3010 '------------ BCC calculation routine ------------------------------ 3020 ' 3030 input : BCALCS ・・・・・・ Object characters for BCC calculation output : BCC$ ・・・・・・...
  • Page 35: Troubleshooting

    9. TROUBLESHOOTING If the communication is unavailable, check the following items. Whether all devices related to communication are turned on. □ Whether connections are correct. □ Whether the number of connected instruments and connection distance are as specified. □ Whether communication conditions coincide between the master station (host computer) and slave stations □...
  • Page 36: Appendix

    10. APPENDIX ・ASCII code table 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 Upper bits 0 1...
  • Page 37 Head Office Gate City Ohsaki, East Tower, 11-2, Osaki 1-chome, Shinagawa-ku, Tokyo 141-0032, Japan http://www.fesys.co.jp/eng Instrumentation Div. International Sales Dept. No.1, Fuji-machi, Hino-city, Tokyo 191-8502, Japan Phone: 81-42-585-6201, 6202 Fax: 81-42-585-6187 http://www.fic-net.jp/eng...

This manual is also suitable for:

Pxr3Pxr4Pxr5Pxr9