Hi!
Im looking at converting a machine program from Siemens TIA to Beckhoff Twincat. Most of it is SCL so its not a problem to convert the code.
On the Siemens part the program consists of FB`s and UDT`s for most things. Its a bit of work to convert this to codesys as i have to create a DUT for a stuct inside a DUT.
How can i most effectivly assign "start values" for a variable in a DUT, in the GVL?
Say i create a motor of type "motor", and i want the fallback to be these values:
Motor: motor := (spSpeed := 99,
speedLimitLow := 15,
speedLimitHigh := 85,
currentLimit := 25);
Next time im working on the machine, setpoints, limit values and scalings have changed from the HMI. Im TIA portal i could set the online values as start values, how can i do this in the Twincat?
Im looking at converting a machine program from Siemens TIA to Beckhoff Twincat. Most of it is SCL so its not a problem to convert the code.
On the Siemens part the program consists of FB`s and UDT`s for most things. Its a bit of work to convert this to codesys as i have to create a DUT for a stuct inside a DUT.
How can i most effectivly assign "start values" for a variable in a DUT, in the GVL?
Say i create a motor of type "motor", and i want the fallback to be these values:
Motor: motor := (spSpeed := 99,
speedLimitLow := 15,
speedLimitHigh := 85,
currentLimit := 25);
Next time im working on the machine, setpoints, limit values and scalings have changed from the HMI. Im TIA portal i could set the online values as start values, how can i do this in the Twincat?