beautypg.com

Rockwell Automation 1747-PT1, D1747NP002 Hand-Held Terminal User Manual

Page 294

background image

Chapter 20
Math Instructions

20–18

An example of clearing S:14 before executing the FRD instruction is shown
below.

When the input condition is set (1), a BCD value (from a 4-digit thumbwheel switch for example) is
moved from word N7:2 into the math register. Status word S:14 is then cleared to make certain
that unwanted data is not present when the FRD instruction is executed.

CLR

CLEAR
Dest

S:14

0

FRD

FROM BCD
Source

S:13

00001234

Dest

N7:0
1234

APS displays S:13 and
S:14 in BCD.

MOV

MOVE
Source

N7:2
4660

Dest

S:13
4660

] [

I:1.0

0

0001 0010 0011 0100

0000 0100 1101 0010