Posted 5 Sep 2021 (edited) 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. Edited 5 Sep 2021 by Link068 Share this post Link to post Share on other sites
Posted 7 Sep 2021 Hello @Link068 For the testing, Can you send me the backup? Share this post Link to post Share on other sites
Posted 8 Sep 2021 Variables need to be local not global. Share this post Link to post Share on other sites