EasyManuals Logo
Home>Allen-Bradley>Control Unit>MicroLogix 1200

Allen-Bradley MicroLogix 1200 Reference Manual

Allen-Bradley MicroLogix 1200
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #170 background imageLoading...
Page #170 background image
Publication 1762-RM001C-EN-P
11-8 Conversion Instructions
TOD - Convert to Binary
Coded Decimal (BCD)
Instruction Type: output
The TOD instruction is used to convert the integer source value to BCD
and place the result in the destination.
Addressing Modes and File Types can be used as shown in the following
table:
TOD Instruction Destination Operand
The destination can be either a word address or math register.
The maximum values permissible once converted to BCD are:
9999 if the destination is a word address (allowing only a 4-digit BCD
value)
32768 if the destination is the math register (allowing a 5-digit BCD
value with the lower 4 digits stored in S:13 and the high order digit in
S:14).
If the destination is the math register, it must be directly addressed as S:13.
S:13 is the only status file element that can be used.
TOD
To BCD
Source N7:0
0<
Dest N7:1
0000h<
TOD
Table 11.10 Execution Time for the TOD Instructions
Controller When Rung Is:
True False
MicroLogix 1200 17.2
µ
s0.0
µ
s
MicroLogix 1500 14.3
µ
s0.0
µ
s
Table 11.11 TOD Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files Function Files
CS0 - Comms
IOS - I/O
Address
Mode
(1)
(1) See Important note about indirect addressing.
Address
Level
O
I
S
B
T, C, R
N
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source •• ••• ••
Destination ••••••
••
(2)
(2) See TOD Instruction Destination Operand below.
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD, RTC,
HSC, P TO , PWM, STI, E I I, BHI, MMI, D AT, T P I, CS, IOS, and
DLS files.

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1200

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley MicroLogix 1200 and is the answer not in the manual?

Allen-Bradley MicroLogix 1200 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1200
CategoryControl Unit
LanguageEnglish

Related product manuals