Luka0204

16 bits into unsigned word/Bit String [16-bit] array

2 posts in this topic

Hi,

I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this:

var1[0].0:=bit1; var1[0].1:=bit2 etc.

I'm using GX Works 2 with CPU L02

Best Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now