Hello folks!
I'm trying to control an extended axis with a PLC. I'm using the $SCR_GRP[1].$MCH_ANG[5] system variable, but it's not working. I use the variable to read the data on axis number 5, but i don't know if i could write to the variable, in terms of controlling it?
I've tried and when i write to it, the axis doesn't move in ROBOGUIDE, but the variable is changed to the correct value, when i check under system variables.
Any suggestions or alternatives to do the job?
Can the problem cause that the robot isn't in run?
I have created a BG Logix program to run the code continuously:
4: !Mapping the skirt position to the PLC
5:
6: GO[30:RGSkirtPos ]=($SCR_GRP[1].$MCH_ANG[5])
7:
8: !Skirt Control
9:
10: R[132:RGSkirtAxis]=GI[30:RGSkirtAxis]
11: $SCR_GRP[1].$MCH_ANG[5]=R[132:RGSkirtAxis]
Kind regards,
daffyhunden