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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

190 Compare InstructionsUsing the CompareInstructionsMost of the compare instructions use two parameters, Source A andSource B (MEQ and LIM have an additional parameter and are describedlater in this chapter). Both sources cannot be immediate values. The validdata ranges for these instructions are:• -32,768…32,767 (word)• -2,147,483,648…2,147,483,647 (long word)Addressing Modes and File Types can be used as shown in the followingtable:EQU, NEQ, GRT, LES, GEQ and LEQ InstructionsValid Addressing Modes and File TypesFor definitions of the terms used in this table see Using the Instruction Descriptions on page 92.ParameterOISBT, C, RNData Files Function Files (1)FSTLMG, PDRI/RIXPLSRTCHSC (3)PTOX, PWMXSTIEIIBHIMMILCDAddressMode (2)Address LevelCS - CommsIOS - I/ODLS - Data LogImmediateDirectIndirectBitWordLong WordElementSource A • • • • • • • • • • • • • • • • • • • • • • • • •Source B • • • • • • • • • • • • • • • • • • • • • • • • •(1) PTOX and PWMX files are only for use with <strong>MicroLogix</strong> <strong>1400</strong> BXB or BXBA unit.(2) See Important note about indirect addressing.(3) Only use the High Speed Counter Accumulator (HSC.ACC) for Source A in GRT, LES, GEQ and LEQ instructions.IMPORTANTYou cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.When at least one of the operands is a Floating Data Point value:• For EQU, GEQ, GRT, LEQ, and LES - If either Source is not anumber (NAN), then rung state changes to false.• For NEQ - If either Source is not a number (NAN), then rung stateremains true.Publication <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!