{}

Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.

Search FAQs

How can we read and write bit value of a variable created in Vijeo Designer.

You can use Variable Methods to read extracted bit and write to extracted bit of an Integer variable. The method to read Extracted bit is X and to write to any particular bit XW.

To use this if you have created an integer variable as var_1 then to read bits you can use the following syntax:

var_1.X(0)

This will return bit 0 status of integer variable var_1.

To write to you can use :

VariableName.XW(int position, boolean value);

For example

var_1.XW(0, True);

This will write value true to bit 0 of var_1.

Please take note that write operation can only be performed in Script as its return is INT type.

Schneider Electric India

Explore more
Range:
Vijeo DesignerHarmony iPCHarmony GTU
Explore more
Range:
Vijeo DesignerHarmony iPCHarmony GTU
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.