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.

Using Interrupts 313STS - Selectable TimedStartSTSSelectable Timed StartTime 1Instruction Type: outputExecution Time for the STS InstructionControllerWhen Rung Is:TrueFalse<strong>MicroLogix</strong> <strong>1400</strong> 20.8470 µs 0.2125 µsSTS Instruction Valid Addressing Modes and File TypesFor definitions of the terms used in this table see Using the Instruction Descriptions on page 92.ParameterOISBT, C, RNThe STS instruction can be used to start and stop the STI function or tochange the time interval between STI user interrupts. The STI instructionhas one operand:• Time - This is the amount of time (in milliseconds) which mustexpire prior to executing the selectable timed user interrupt. A valueof zero disables the STI function. The time range is from 0…65,535milliseconds.The STS instruction applies the specified set point to the STI function asfollows:Data Files• If a zero set point is specified, the STI is disabled and STI:0/TIE iscleared (0).• If the STI is disabled (not timing) and a value greater than 0 isentered into the set point, the STI starts timing to the new set pointand STI:0/TIE is set (1).• If the STI is currently timing and the set point is changed, the newsetting takes effect immediately and the STI continues to time until itreaches the new set point.Note that if the new setting is less than the current accumulatedtime, the STI times-out immediately. For example, if the STI hasbeen timing for 15 microseconds, and the STI set point is changedfrom 20 microseconds to 10 microseconds, an STI user interruptoccurs at the next start-of-rung.Addressing Modes and File Types can be used as shown below:FSTLFunction FilesMG, PDRI/RIXPLSRTCHSCPTOX, PWMXSTIEIIBHIMMILCDAddress (1)ModeAddress LevelCS - CommsIOS - I/ODLS - Data LogImmediateDirectIndirectElementBitWordLong WordTime • • • • • • • • • •(1) See Important note about indirect addressing.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!