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.

306 Input and Output InstructionsAddressing Modes and File Types can be used as shown below:IOM Instruction Valid Addressing Modes and File TypesFor definitions of the terms used in this table see Using the Instruction Descriptions on page 92.Data FilesFunction FilesAddressModeAddress LevelParameterOISBT, C, RNFSTLMG, PDRI/RIXPLSRTCHSCPTOX, PWMXSTIEIIBHIMMILCDCS - CommsIOS - I/ODLS - Data LogImmediateDirectIndirectBitWordLong WordElementSlot • • • •Mask • • • • • • • • •Length•REF- I/O RefreshInstruction Type: outputREFExecution Time for the REF InstructionController<strong>MicroLogix</strong> <strong>1400</strong>When Rung Is:TrueSee <strong>MicroLogix</strong> <strong>1400</strong> Scan TimeCalculation on page 550False0.1490 µsThe REF instruction is used to interrupt the program scan to execute theI/O scan and service communication portions of the operating cycle forall communication channels. This includes: write outputs, servicecommunications (all communication channels, communications togglefunctionality, and comms housekeeping), and read inputs.The REF instruction has no programming parameters. When it is evaluatedas true, the program scan is interrupted to execute the I/O scan andservice communication portions of the operating cycle. The scan thenresumes at the instruction following the REF instruction.The REF instruction cannot be executed from an STI subroutine, HSCsubroutine, EII subroutine, or a user fault subroutine.TIPUsing an REF instruction may result in input data changing in the middle ofa program scan. This condition needs to be evaluated when using the REFinstruction.ATT<strong>EN</strong>TIONThe watchdog and scan timers are reset when executing the REFinstruction. You must insure that the REF instruction is not placed inside anon-terminating program loop. Do not place the REF instruction inside aprogram loop unless the program is thoroughly analyzed.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!