hey people,
I am trying to run external axis with the HMI button, but I have been constantly receiving errors that says:
$ACC_AXIS variable write protected in the module BAS line 418,
I have attached the project file, and I have been using codes:
if forwardB== true then
BAS(#INITMOV,0)
$ASYNC_AXIS='B0001'
$OV_ASYNC= 100
ASYPTP {E1 0}
endif
the forwardB is linked with pushbutton in the HMI.
The reason to use the BAS(#INITMOV, 0) is to get rid of another error which was:
Value assignment inadmissible: nicht von R_INT.
I just found that code in the internet and manual jogging was successful but with HMI it gives the error (upper one).
Anyone have been through this or any idea you guys can share?