-
Notifications
You must be signed in to change notification settings - Fork 0
/
actuators.json
49 lines (49 loc) · 2.1 KB
/
actuators.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"ActuatorDigitalMonoPlusLsPlusUM": {
"isFileTemplate": true,
"body": [
"PROGRAM ${TM_FILENAME_BASE}",
"VAR",
" DateTime : ZAux.DateTimeUM;",
" Logger : ZAux.LoggerFile7FFUM(datetime:=DateTime, filePath:='C:\temp\\logfile.log', target:='');",
" ${instance:Actuator} : ZEquipment.ActuatorDigitalMonoPlusLsPlusUM;",
" Step : ZCore.Step(begin:=0, end:=100);",
"END_VAR",
"",
"",
"DateTime.Cyclic();",
"Logger.Cyclic();",
"${instance}.Cyclic();",
"",
"CASE Step.Index OF",
" 0:",
" ${instance}.SetLogger(Logger);",
" ${instance}.SetName(name:='${instanceName:My Actuator}', movePlusName:='${plusName:Plus}', moveMinusName:='${minusName:Minus}', plusName:='Is${plusName}', minusName:='Is${minusName}');",
" ${instance}.SetSimulation(mode:=ZEquipment.ActuatorDigitalSimulation.Automatic);",
" ${instance}.SetSimulationUncertainty(uncertainty:=10);",
" ${instance}.SetDelay(plusStartDuration:=${startDelay:0}, plusEndDuration:=${endDelay:0}, minusStartDuration:=${startDelay}, minusEndDuration:=${endDelay}, stop:=0);",
" ${instance}.SetSwitchDuration(plusDuration:=0, minusDuration:=0);",
" ${instance}.SetMovementDuration(plusDuration:=3, minusDuration:=3);",
" ${instance}.SetTimeout(plusDuration:=${timeout:5}, minusDuration:=${timeout});",
"",
" Step.SetNext(10);",
"",
" 10:",
" IF Step.OnEntry() THEN",
" ${instance}.MovePlusAsync(0);",
" END_IF",
"",
" IF ${instance}.Done THEN",
" Step.SetNext(20);",
" END_IF",
"",
" 20:",
" ;",
"END_CASE",
"",
"",
"END_PROGRAM"
],
"description": "ActuatorDigitalMonoPlusLsPlusUM Example"
}
}