towards recabeling and reconfiguring all Powerbricks and Smaracts devices

Here all IOCs were started without any hardware.
So in the next steps the hardware must be tested.
This commit is contained in:
2017-12-21 14:43:07 +01:00
parent 4049955619
commit 789224b83d
31 changed files with 706 additions and 296 deletions

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