Rockwell Automation 1771-TCM,D17716.5.108 TEMPERATURE CONTROL MOD User Manual

Page 29

Advertising
background image

Chapter 3
Communicating with Your Module

3-7

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

I:001

35

8

O:002

Dest bit

Length

0

0

8

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

37

0

O:001

Dest bit

Length

9984

8

8

MEQ

MASKED EQUAL

Source

Mask

I:001

35

00FF

Compare

35

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

0

0

O:002

Dest bit

Length

0

0

8

This rung examines the low byte of TCM

module's input image word to see if it is equal

to 35

10

. If true, it copies the high byte of the

TCM module's input image word to the output

image byte of the module driving the heating

elements, and writes the value 37

10

to the

high byte of the TCM module's input image

word.

If the TCM module's watchdog timer bit is off,

this rung zeros the output image byte for the

outputs driving the heating elements.

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

I:001

37

8

O:003

Dest bit

Length

0

0

8

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

35

0

O:001

Dest bit

Length

9984

8

8

MEQ

MASKED EQUAL

Source

Mask

I:001

37

00FF

Compare

37

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

0

0

O:003

Dest bit

Length

0

0

8

This rung examines the low byte of TCM

module's input image word to see if it is equal

to 37

10

. If true, it copies the high byte of the

TCM module's input image word to the output

image byte of the module driving the heating

elements, and writes the value 35

10

to the

high byte of the TCM module's input image

word.

If the TCM module's watchdog timer bit is off,

this rung zeros the output image byte for the

outputs driving the cooling elements.

Since this instruction is designed primarily

for use with integer source and destination

words, the source bit and destination bit

must be designated in decimal. In these

cases you would enter 8

10

to designate bit

10

8

of the I/O image word

S:1

15

BTD

BIT FIELD DISTRIB

Source

Source bit

Dest

35

0

O:001

Dest bit

Length

9984

8

8

I:004

7

This rung examines status bit S:1/15, which

is on only during the first program scan, and

input image I:004/7, which reflects the state

of a bushbutton switch connected to that

input. If either is on, it writes the value 35

10

to the high byte of the TCM module's input

image word.

This bit is on during only the first program scan

This bit reflects the state of a pushbutton switch

used for manually starting the sequence

I:001

7

I:001

6

I:001

0

I:001

7

I:001

6

I:001

0

Advertising