EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 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 #564 background imageLoading...
Page #564 background image
564 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 16 Math Conversion Instructions (DEG, RAD, TOD, FRD, TRN, TRUNC)
Convert to BCD (TOD)
The TOD instruction converts a decimal value (0 ≤ Source ≤ 99,999,999) to a BCD
value and stores the result in the Destination.
Operands:
Relay Ladder
Function Block
FBD_CONVERT Structure
Operand Type Format Description
Source SINT
INT
DINT
Immediate
Tag
Value to convert to decimal
A SINT or INT tag converts to a DINT value by zero-fill.
Destination SINT
INT
DINT
Tag Stores the result
Operand Type Format Description
TOD tag FBD_CONVERT Structure TOD structure
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Source DINT Input to the conversion instruction.
Valid = any integer
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.
Dest DINT Result of the conversion instruction. Arithmetic status flags are set for this output.

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

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

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals