nightline
Member
Hi gents,
I'm building an Beckhoff HMI where I have to set an array of booleans to true by pressing a button.
Therefore I created the following code in Javascript:
for (var i = 0; i < 49; i=i+2) {
'PLC1.prgS0.HMI_MG.abHMI_AxisActive' = true ;
}
When testing this code, I got a SyntaxError: Invalid left-hand side in assignment
Can anyone tell me what's wrong?
Thanks in advance!
Jack
I'm building an Beckhoff HMI where I have to set an array of booleans to true by pressing a button.
Therefore I created the following code in Javascript:
for (var i = 0; i < 49; i=i+2) {
'PLC1.prgS0.HMI_MG.abHMI_AxisActive' = true ;
}
When testing this code, I got a SyntaxError: Invalid left-hand side in assignment
Can anyone tell me what's wrong?
Thanks in advance!
Jack