Cyclic Interrupts; Set_Cint (Set Cyclic Interrupt Parameters) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Extended instructions
8.4 Interrupts
DETACH operation
Use the DETACH instruction to detach either a particular event or all events from a particular
OB. If an EVENT is specified, then only this one event is detached from the specified
OB_NR; any other events currently attached to this OB_NR will remain attached. If no
EVENT is specified, then all events currently attached to OB_NR will be detached.
Condition codes
Table 8- 87
RET_VAL (W#16#....)
0000
0001
8090
8091
8093
8.4.2

Cyclic interrupts

8.4.2.1

SET_CINT (Set cyclic interrupt parameters) instruction

Table 8- 88
SET_CINT (Set cyclic interrupt parameters)
LAD / FBD
Table 8- 89
Data types for the parameters
Parameter and type
OB_NR
IN
CYCLE
IN
PHASE
IN
RET_VAL
OUT
334
Condition codes
ENO
1
1
0
0
0
SCL
ret_val := SET_CINT(
ob_nr:=_int_in_,
cycle:=_udint_in_,
phase:=_udint_in_);
Data type
OB_CYCLIC
UDInt
UDInt
Int
Description
No error
Nothing to Detach (DETACH only)
OB does not exist
OB is wrong type
Event does not exist
Description
Set the specified interrupt OB to begin cyclic execution
that interrupts the program scan.
Description
OB number (accepts symbolic name)
Time interval, in microseconds
Phase shift, in microseconds
Execution condition code
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller

Advertisement

Table of Contents
loading

Table of Contents