mohammed.omar
Member
Hi,
I have received an assignment in my job which requires me to make a block to read the bits from a different block
let me explain in details;
I have an FBD in my Unitypro which is have outputs in a Status word as bits.
STW_b0 - Run, STW_b1 - Fail and so on ... I want to use them as variables in VJD.
Now, what I want is to make a block for this STW, like if in the main DEVCTL FBD the status word is b1, in that case, it should Enable the STW block which I want to create and then the bit which is 1. I want One pin for enabling the new block and rest 16 pins for the STW's which will receive the cmd from the DEVCTL block.
Can anyone help me in making this, as I am very new to Unity and ST ....
I have received an assignment in my job which requires me to make a block to read the bits from a different block
let me explain in details;
I have an FBD in my Unitypro which is have outputs in a Status word as bits.
STW_b0 - Run, STW_b1 - Fail and so on ... I want to use them as variables in VJD.
Now, what I want is to make a block for this STW, like if in the main DEVCTL FBD the status word is b1, in that case, it should Enable the STW block which I want to create and then the bit which is 1. I want One pin for enabling the new block and rest 16 pins for the STW's which will receive the cmd from the DEVCTL block.
Can anyone help me in making this, as I am very new to Unity and ST ....