Hello,
I was wondering what would be the best way to transfer only the first 16 bits of a dint to a 16 bit int data type?
Controller: Control Logix 5000
Problem: I have an input card which has 16 inputs, but the Tag database for the input card is of the Dint data type (32 bits of data).
ex. for a 16 bit input card the tag would read
Local:0:I.Data.0
Local:0:I.Data.1
etc.
etc.
Local:0:I.Data.31
Now I would Like to transfer the first 16 bits only to a Int tag (16 bits of data).
What is the best method for this transfer?
I was wondering what would be the best way to transfer only the first 16 bits of a dint to a 16 bit int data type?
Controller: Control Logix 5000
Problem: I have an input card which has 16 inputs, but the Tag database for the input card is of the Dint data type (32 bits of data).
ex. for a 16 bit input card the tag would read
Local:0:I.Data.0
Local:0:I.Data.1
etc.
etc.
Local:0:I.Data.31
Now I would Like to transfer the first 16 bits only to a Int tag (16 bits of data).
What is the best method for this transfer?