background image

IM 05C01E22-10E

3-7

Chapter 3  PC Link Communication

3.2.3

Commands

BRD

Reads I relays on a bit-by-bit basis.

Function

Reads a sequence of contiguous ON/OFF statuses by the specified number of bits starting at a speci-
fied I relay number.

• The number of bits to be read at a time is 1 to 48.
• For the format of response in the event of failure, see subsection 3.1.2.
• The command shown below includes the checksum function. When performing communication

without checksum, do not include the 2-byte  checksum command element in the command.

Command/Response (for normal operation)

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

Address 

number

(ADR)

2

CPU 

number

01

1

dn

2

Checksum

1

ETX

1

CR

2

OK

1

d1

1

d2

1

d3

dn: read data to the extent of the specified number of bits (n = 1 to 48) 
dn = 0 (OFF) 
dn = 1 (ON)

The response is “0” when the status is OFF or “1” when ON. 

Example: Reading the status of alarm 1 of the UT150L with address number 01

The following command reads the status of alarm 1 (I0001) at address number 01.

[Command] 

STX$+ “01010BRDI0001, 00191” +ETX$+CR$

The following response is returned with respect to the above command. (Alarm 1 is ON.)

[Response] STX$+ 

“0101OK18D” +ETX$+CR$

Alarm has been ON since 1 was returned.

Summary of Contents for UT150L

Page 1: ...User s Manual Model UT150L Communication Functions IM 05C01E22 10E IM 05C01E22 10E 3rd Edition...

Page 2: ......

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 8: ...IM 05C01E22 10E vi Appendix Table of ASCII Codes Alphanumeric Codes App 1 Revision Record i...

Page 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...

Page 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...

Page 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...

Page 12: ...IM 05C01E22 10E 1 4...

Page 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...

Page 14: ...IM 05C01E22 10E 2 2...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 38: ...IM 05C01E22 10E 3 24...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 48: ...IM 05C01E22 10E 4 10...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 54: ...IM 05C01E22 10E 6 2...

Page 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...

Page 56: ...IM 05C01E22 10E App 2...

Page 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...

Page 58: ......

Page 59: ......

Page 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...

Reviews: