class
ScriptTaskConfigObject.
ScriptTaskConfigObjectMarker
class
ScriptTaskConfigObject.
ScriptTaskObjectMarker
class
ScriptTaskConfigObject.
ScriptTaskConfigObject
Bases: ScriptTaskConfigObject.ScriptTaskConfigObjectMarker
Functionality for manipulating task configuration objects.
3.5.10.0
create_task
name
Add a task object to a task configuration.
class
ScriptTaskConfigObject.
ScriptTaskObject
Bases: ScriptTaskConfigObject.ScriptTaskObjectMarker
Functionality for manipulating task objects.
3.5.10.0
name
Name of the task.
str
kind_of_task
Kind of task.
CoDeSys.TaskConfig.KindOfTask
event_pou_guid
Guid of POU for event.
Guid
priority
Priority of the task.
str
interval
Interval of the task.
Requires the property kind_of_task to be set to KindOfTask.Cyclic or KindOfTask.ExternalEvent if the device supports it.
str
interval_unit
Unit used for the interval.
Requires the property kind_of_task to be set to KindOfTask.Cyclic or KindOfTask.ExternalEvent if the device supports it.
str
watchdog
Settings for the watchdog of the task.
event
Use event to trigger the task.
Requires the property kind_of_task to be set to KindOfTask.Event or KindOfTask.Status.
str
external_event
Use external event to trigger the task.
Requires the property kind_of_task to be set to KindOfTask.ExternalEvent.
str
core_binding
Core binding. On multicore deivce each task can have an optional core binding.
int
parent_synchron_task
Task of the device application which allows synchronous calls to child application in bus cycle.
Requires the property kind_of_task to be set to KindOfTask.ParentSynchron.
str
pous
Collection of POUs which are executed by the task.
ScriptObjectCollection
class
ScriptTaskConfigObject.
ScriptWatchdog
Bases: object
A configuration for a watchdog.
3.5.10.0
enabled
Enable the watchdog for a task.
bool
time
Time monitoring for a task.
str
time_unit
Unit user for the time.
str
sensitivity
Sensitivity of the watchdog.
str
class
ScriptTaskConfigObject.
ScriptPouObjectCollection
Bases: list
A collection of POUs which are executed by a task.
3.5.10.0
add
pou_name
comment=None
Add a POU to the list.
pou_name (str) -- Name of the POU.
comment (str) -- Optional comment about this entry
insert
index
pou_name
comment
Insert a POU to the list at the specified index.
index (int) -- Index of a POU at which a new POU should be inserted.
pou_name (str) -- Name of the POU.
comment (str) -- Optional comment about this entry
replace
index
pou_name
comment
Replace the POU in the list at the specified index.
index (int) -- Index of a POU which should be replaced.
pou_name (str) -- Name of the POU.
comment (str) -- Optional comment about this entry
remove
index_or_name
Remove a POU from the list at the specified index OR: Remove the first POU with the specified name from the list.
index_or_name (int or str) -- Index or name of a POU which should be removed.