background image

IM 05C01E22-10E

3-4

3.2

Communication with Host Device

In PC link communication, when specifying D registers or I relays, the internal registers of UT150L,
you can use their numbers as is. The specifications of the number of each internal register are:

• D registers: D****  (****: numeric value)
• I relays:

I****  (****: numeric value)

Host devices to be connected to UT150L are those capable of handling the PC link communication
protocol.

As an example of communication program, Section 3.3 shows an example of BASIC program created
using Microsoft Quick BASIC.

Содержание UT150L

Страница 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...

Страница 2: ......

Страница 3: ...communication protocol other than these Intended Readers This manual is intended for people familiar with the functions of the UT150L Controller and control engineers and personnel in charge of maint...

Страница 4: ...reference locations for further information on the topic Description of Displays 1 Some of the representations of product displays shown in this manual may be exaggerated simplified or partially omit...

Страница 5: ...rding Protection Safety and Prohibition Against Unauthorized Modification 1 In order to protect the product and the system controlled by it against damage and ensure its safe use make certain that all...

Страница 6: ...ion of the product is strictly prohibited 5 Use this software with one specified computer only You must purchase another copy of the software for use on each additional computer 6 Copying this softwar...

Страница 7: ...6 3 2 3 Commands 3 7 3 2 4 Response Error Codes 3 20 3 3 Example of BASIC Program for Send and Receive 3 21 Chapter 4 MODBUS Communication 4 1 4 1 Overview 4 1 4 1 1 Configuration of Message 4 2 4 2 C...

Страница 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...

Страница 9: ...UT150L See Section 1 2 Connect a higher level device and a UT150L See the connection diagram below Create communication programs for the higher level device to perform communication Communication prog...

Страница 10: ...tion in protocol selection the data length is fixed to 7 When 4 RTU mode is selected it is fixed to 8 Data length Symbol ADR PSL PRI DLN BPS STP 1 2 0 2400 1 4800 2 9600 0 none 1 even 2 odd Setting Ra...

Страница 11: ...tations ADR 20 ADR 50 Personal computer Baud rate BPS Set the same communication rate as that of the host device to be connected Otherwise proper communication cannot be achieved The unit of the commu...

Страница 12: ...IM 05C01E22 10E 1 4...

Страница 13: ...nication ASCII mode MODBUS communication RTU mode Terminal numbers 3 5 9600 bps Table 2 2 Types of Devices to be Connected Device to be Connected PC Communication Protocol PC link communication MODBUS...

Страница 14: ...IM 05C01E22 10E 2 2...

Страница 15: ...communication you can use such device to read write data from into D registers or read data from I relays both of which are internal registers of the UT150L Hereafter PCs are generally called host dev...

Страница 16: ...ice 6 Data Corresponding to Command Specify an internal register D register or I relay number of data pieces UT150L parameter value and others 7 Checksum This converts the ASCII codes of texts between...

Страница 17: ...01F4 UT150L side Target setpoint 50 0 The position of the decimal point for 500 is determined by the DP position of decimal point parameter of the UT150L 3 1 2 Configuration of Response Responses from...

Страница 18: ...e their numbers as is The specifications of the number of each internal register are D registers D numeric value I relays I numeric value Host devices to be connected to UT150L are those capable of ha...

Страница 19: ...asis random read Bit basis write Bit basis monitoring 1 to 32 bits 1 to 16 bits 1 to 48 bits 1 to 16 bits Number of Bits to be Handled 1 to 16 bits 2 Word basis Access Commands Command WRD WWR WRW WRR...

Страница 20: ...he connected UT150L or other devices to receive a command Specifying an address number in Table 3 3 for the address number column in a command enables the host device to write data from into the inter...

Страница 21: ...Number of Bytes Command element 1 STX 2 Address number ADR 5 I relay number 1 Comma or space 3 Number of bits n 2 CPU number 01 2 Checksum 3 BRD 1 ETX 1 CR 1 0 Number of Bytes Response element 1 STX 2...

Страница 22: ...OFF dn 1 ON Number of Bytes Command element 1 STX 2 Address number ADR 5 I relay number 1 Comma or space 1 Comma or space 3 Number of bits n 2 CPU number 01 3 BWR 1 d1 1 d2 1 0 1 dn 2 Checksum 1 ETX...

Страница 23: ...I relay number 1 2 Number of bits n 1 Comma or space 1 Comma or space 5 I relay number 2 2 CPU number 01 3 BRR 1 0 Number of Bytes Response element 1 STX 2 Address number ADR 2 CPU number 01 2 OK 1 d1...

Страница 24: ...umber 1 5 I relay number 2 1 Comma or space 1 Comma or space 2 Number of bits n 2 CPU number 01 3 BRW 1 d1 1 0 I relay number n 1 5 Comma or space 1 Comma or space 1 Comma or space 1 d2 1 dn Command c...

Страница 25: ...below includes the checksum function When performing communication without a checksum do not include the 2 byte checksum command element in the command Command Response for normal operation Number of...

Страница 26: ...command Command Response for normal operation Number of Bytes Command element 1 STX 2 Address number ADR 2 CPU number 01 3 BRM 1 0 Number of Bytes Response element 1 STX 2 Address number ADR 2 CPU nu...

Страница 27: ...ration Number of Bytes Response element 1 STX 3 WRD 2 Address number ADR 2 CPU number 01 4 dddd1 4 dddd2 4 ddddn 2 OK 2 Checksum 1 ETX 1 CR Number of Bytes Command element 1 STX 2 Address number ADR 2...

Страница 28: ...tes Command element 1 STX 2 Address number ADR 5 Register number 1 Comma or space 2 Number of words n 1 Comma or space 4 dddd1 4 dddd2 4 ddddn 2 CPU number 01 3 WWR 1 0 2 Checksum 1 ETX 1 CR Command c...

Страница 29: ...r of words n 5 Register number 1 5 Register number 2 1 Comma or space 1 Comma or space 5 Register number n 2 CPU number 01 3 WRR 1 0 Number of Bytes Response element 1 STX 2 Address number ADR 2 CPU n...

Страница 30: ...a or space 1 Comma or space 5 Register number 2 5 Register number n 2 CPU number 01 3 WRW 4 dddd1 4 dddd2 4 ddddn 1 0 2 Checksum 1 ETX 1 CR Command continued Repetition of register numbers and write i...

Страница 31: ...lure see subsection 3 1 2 The command shown below includes the checksum function When performing communication without the checksum do not include the 2 byte checksum command element in the command Co...

Страница 32: ...operation Number of Bytes Command element 1 STX 2 Address number ADR 2 CPU number 01 3 WRM 1 0 2 Checksum 1 ETX 1 CR Number of Bytes Response element 1 STX 2 Address number ADR 2 CPU number 01 4 dddd1...

Страница 33: ...umber 01 3 INF 1 0 1 6 2 Checksum 1 ETX 1 CR Number of Bytes Response element 1 STX 2 Address number ADR 2 CPU number 01 2 OK 8 UT150L Note 1 4 Readout start register for special device 4 Number of re...

Страница 34: ...of data or end of text character is not received 03 Internal register specification error No register number exists If a bit register I relay is used on a word by word basis its specification is not...

Страница 35: ...those of the PC e g communication rate must agree with each other Set the communication rate baud rate of the PC using the SWITCH command of MS DOS 3 For how to use the SWITCH command refer to the Us...

Страница 36: ...fRCVEND 0 AND fTIMEOUT 0 1200 1210 TIMER OFF Stop timer 1220 COM 1 OFF Prohibit interruption during receiving 1230 CLOSE 1 Close the port 1240 1250 PRINT SEND Display sent character string on screen 1...

Страница 37: ...timeout Timeout processing 1460 fTIMEOUT 1 Set timeout flag 1470 RCVCHR Time out 5 sec CR Character string for display on screen Time out 5 sec 1480 RETURN The line numbers are not required They are...

Страница 38: ...IM 05C01E22 10E 3 24...

Страница 39: ...I system and RTU mode binary system for the communication mode Table 4 1 ASCII and RTU Modes Item Number of data bits Message start mark Message end mark Length of message Note 1 Error detection Note...

Страница 40: ...m the higher level device 4 Data This element specifies D register numbers the number of D registers parameter values and so on in accordance with the function code 5 Error Check In RTU mode Carried o...

Страница 41: ...e To specify target setpoint D0120 1 For a message using commercially available SCADA or the like specify reference number 40120 2 For a message in a customer created communication program specify the...

Страница 42: ...1200 m for a maximum of 31 substations Figure 4 2 Specifying Broadcast Broadcast is a feature in which all connected UT150L can receive the command concerned Specifying the number in Table 4 3 at the...

Страница 43: ...al operation Element Number of bytes in RTU mode Number of bytes in ASCII mode 1 Contents of D Registers Upper Digit 2 Start of Message Mark None 1 Contents of D Registers Lower Digit 1 2 Error Check...

Страница 44: ...it Response for normal operation Element Number of bytes in RTU mode Number of bytes in ASCII mode 1 Number of D Registers Upper Digit 2 Start of Message Mark None 1 Number of D Registers Lower Digit...

Страница 45: ...Digit Message continued Response for normal operation Element Number of bytes in RTU mode Number of bytes in ASCII mode 1 Write Data Upper Digit 2 Start of Message Mark None 1 Write Data Lower Digit 1...

Страница 46: ...ontinued Response for normal operation Element Number of bytes in RTU mode Number of bytes in ASCII mode 1 Send Data Upper Digit 2 Start of Message Mark None 1 Send Data Lower Digit 1 2 Error Check 2...

Страница 47: ...e Table 4 4 List of Error Codes Error Code 01 02 Meaning Function code error D register address error Description No function code exists Address out of the range has been specified 03 D register coun...

Страница 48: ...IM 05C01E22 10E 4 10...

Страница 49: ...chapter In the example shown below the number in the leftmost column denotes 1 D register number The five digit number in the column on the immediate right of the leftmost column represents 2 Referenc...

Страница 50: ...y 0 and 1 respectively The D registers D0401 to 0420 are read only Note 2 The user area register numbers D0401 to 0420 is reserved for 16 bit register data used in other software programs When working...

Страница 51: ...39 R W D0101 40101 0064 A1 R W D0404 40404 003A R W D0102 40102 0065 A2 R W D0405 40405 003B R W D0103 D0406 40406 003C R W D0104 D0407 40407 003D R W D0105 D0408 40408 003E R W D0106 D0409 40409 003F...

Страница 52: ...t Value D0003 Register CSP Currently used Target Setpoint D0009 Register TIM Duration Time Example The reading for one hours 38 minutes and 57 seconds is given as 5 937 seconds D0010 Register MOD Limi...

Страница 53: ...ormed by each combination of four I relays The lowest numbered I relay in each set signifies the LSB of the four bits Read Write NOTE The on off status I relays numbered 1 to 16 store on off status in...

Страница 54: ...IM 05C01E22 10E 6 2...

Страница 55: ...0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 1 1 b2 0 1 1 0 1 1 0 0 1 0 1 1 1 0 0 b1 1 0 0 C D 1 5 3 4 6 7 2 A B 8 9 F 0 E FF CR SOH ETX LF BEL EOT HT BS ACK ENQ STX VT 0 0 0 0 SI NUL 0 SO DLE DC1 FS G...

Страница 56: ...IM 05C01E22 10E App 2...

Страница 57: ...munication Functions Edition Date Revised Item First Oct 2000 Newly published Second Sep 2003 Correct Third Jun 2004 Change of the company name Written by Yokogawa Electric Corporation Published by Yo...

Страница 58: ......

Страница 59: ......

Страница 60: ...SUL S A Headquarters Plant Praca Acapulco 31 Santo Amaro Sao Paulo SP BRAZIL CEP 04675 190 Phone 55 11 5681 2400 Facsimile 55 11 5681 4434 YOKOGAWA ENGINEERING ASIA PTE LTD Head office 5 Bedok South...

Отзывы: