18 lines
318 B
Smalltalk
18 lines
318 B
Smalltalk
PROGRAM Moteur
|
|
VAR
|
|
O_MOTOR AT %QX100.0 : BOOL;
|
|
I_IHM_BTN AT %QX100.1 : BOOL := FALSE;
|
|
END_VAR
|
|
|
|
O_MOTOR := I_IHM_BTN;
|
|
END_PROGRAM
|
|
|
|
|
|
CONFIGURATION Config0
|
|
|
|
RESOURCE Res0 ON PLC
|
|
TASK task0(INTERVAL := T#20ms,PRIORITY := 0);
|
|
PROGRAM instance0 WITH task0 : Moteur;
|
|
END_RESOURCE
|
|
|
|
END_CONFIGURATION
|