beautypg.com

Convert to bcd (tod), Entering parameters – Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 288

background image

Chapter 20
Math Instructions

20–12

Convert to BCD

TOD

Output Instruction

(TOD)

TOD

TO BCD
Source

N7:0

557

Dest

N7:1
0557

TOD

TO BCD
Source

N7:0

557

Dest

S:13

00000557

F1

F2

F3

F4

F5

ZOOM on TOD –(TOD)– 2.3.0.0.2
NAME: TO BCD
SOURCE: N7:0 557
DEST: S:13 1367 (decimal)

EDT_DAT

HHT Ladder Display:

HHT Zoom Display:

Ladder Diagrams and APS Displays:

F1

F2

F3

F4

F5

ZOOM on TOD –(TOD)– 2.3.0.0.2
NAME: TO BCD
SOURCE: N7:0 557
DEST: N7:1 1367 (decimal)

EDT_DAT

(online monitor mode)

BCD

BCD

SLC 5/02 Processors

SLC 5/02 Processors

Fixed, SLC 5/01 Processors

Fixed, SLC 5/01 Processors

Use this conversion instruction when you want to display or transfer BCD
values external to the processor.

Entering Parameters

Source – the address of the value to be converted to BCD. If the integer
value you enter is negative, the sign is ignored and the conversion occurs
as if the number were positive. The absolute value of the number is used
for conversion.

Destination – the address of the location to hold the result of the
conversion. With SLC 5/02 processors, the destination parameter can be
a word address in any data file, or it can be the math register, S:13 and
S:14. With fixed and SLC 5/01 processors, the destination can only be
the math register.
If the math register is the destination, 32,767 is the maximum value. If a
word address is used, 9999 is the maximum value.

Convert to BCD (TOD)