jisotalo/ads-client

write variable type BOOL

Closed this issue · 1 comments

Hello,
How can I write a binary variable of type BOOL;

{attribute 'qualified_only'}
VAR_GLOBAL
   output1 : BOOL;
END_VAR
const res = await this.client.writeSymbol( "GVL_Test.output1", "0")
const res1 = await this.client.writeSymbol( "GVL_Test.output1", "true")

it doesn't work for me...
thank you, Víctor.

solution:
const res = await this.client.writeSymbol( "GVL_Test.output1", 1)

merry christmas 2023