Using Protocol Macros

Section 5-7

5-7-3 Ladder Program Example

The following diagram shows an example in which sequence number 000 (Pres- ent Value Read) for a Temperature Controller (E5jK Read Protocol) is executed using the protocol for an OMRON Temperature Controller connected to port 2 (RS-422A/485) of a Serial Communications Board.

Connections

Serial Communications Board

Port 2

RS-422A/485

Send data

Receive data

Temperature Controller E5jK Unit No. 00

32 Units max.

Specifies the Temperature Controller Unit No. , sends the PRESENT VALUE READ command send data, and receives the present value set in the response in the specified word.

Temperature

Temperature

Controller E5jK

Controller E5jK

Unit No. 01

Unit No. 31

32 Units max.

Send Word Allocation for Sequence No. 000 (Present Value Read)

First word of

S

Number of send data words

send data

 

 

 

S + 1

(Undefined)

Unit No.

 

 

 

 

 

Word

Contents (data format)

Data

 

 

 

S

Number of send data words

0002 (fixed)

 

(4-digit BCD)

 

 

 

 

S + 1

Unit No.

00 to 31

 

(2-digit BCD)

 

 

 

 

Receive Word Allocation for Sequence No. 000 (Present Value Read)

Receive data

D

storage words

D + 1

 

Number of receive data words

Present value

Word

Contents (data format)

Data

 

 

 

D

Number of receive data words

0002

 

(4-digit BCD)

 

 

 

 

D + 1

Present value

Scaling

 

(4-digit BCD)

Lower limit to upper limit

 

 

 

88

Page 99
Image 99
Omron CQM1H-SCB41 Ladder Program Example, Connections, Send Word Allocation for Sequence No Present Value Read