13.07.2015 Views

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

1766-RM001A-EN-P MicroLogix 1400 Programmable Controllers ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Math Instructions 235CPT Instruction Valid Addressing Modes and File TypesFor definitions of the terms used in this table see Using the Instruction Descriptions on page 92.Data Files Function Files (1)Address Mode (3)Address LevelParameterOISBT, C, RNFSTLMG, PDRI/RIXPLSRTCHSCPTOX, PWMXSTIEIIBHIMMILCDCS - CommsIOS - I/ODLS - Data Log (2)DirectIndirectImmediateInt16Immediate Int32Immediate FloatBitWordDouble WordElementFloatDestination • • • • • • • • • • • • •(1) PTOX and PWMX files are only for use with <strong>MicroLogix</strong> <strong>1400</strong> BXB or BXBA unit.(2) The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP.(3) See Important note about indirect addressing.IMPORTANTYou cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.Instruction OperationWhen the rung is true, this instruction shall compute the expression andplace the result in Destination.Note that it takes on the attributes of the instruction which it is computing.The following instructions can be included in the expression section ofCPT instruction.CPT Instruction OperationSub InstructionsAdditionSubtractionMultiplicationDivisionSquare RootNegateLogical NotLogical Exclusive OrLogical Inclusive OrLogical AndSymbol+ (ADD)- (SUB)* (MUL)/ (DIV)SQR- (NEG)NOTXORORANDPublication <strong>1766</strong>-<strong>RM001A</strong>-<strong>EN</strong>-P - October 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!