commit old changes

This commit is contained in:
2017-11-08 14:48:02 +01:00
parent ea9fbc6d47
commit 16e1bbb289
7 changed files with 918 additions and 28 deletions

21
cfg/startOnTrigger.cfg Normal file
View File

@@ -0,0 +1,21 @@
//changes the Timebase of coord system 1
//modifies the timebase to start/stop a running program
//this can also be used to adjust the execution speed
open plc 1
Coord[1].DesTimeBase=0 // freezes timebase at boot
while(1)
{
if(PowerBrick[0].GpioData[0].0.1==1)
{
PowerBrick[0].GpioData[0].16.8=255
Coord[1].DesTimeBase=Sys.ServoPeriod
}
else
{
PowerBrick[0].GpioData[0].16.8=7
Coord[1].DesTimeBase=0
}
}
close