Link068

Display Integer from FB CX-Programmer

3 posts in this topic

Good Afternoon,

I am new to CX-Programmer so excuse this question. 

I have written a FB in ST to trigger BOOL and Integer variables. Within the FB I have written ST with a case statement which is working correctly. The issue I am having is that It seems the integer variables in the FB (HMI_Q_FAN_STATUS) are not being passed to the assigned global variable (assigned to D register) on the output of the FB. 

In the attached screen shot, the FB is in case 3 therefore the integer variable should display HMI_Q_FAN_STATUS=3, however is still displaying 0.

Any help with this would be great.

Thanks and have a good day.

 

Image.jpg

Edited by Link068

Share this post


Link to post
Share on other sites

Variables need to be local not global. 

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