Werner
Member
I am programming in Siemens Step 7. I created an FB which controlles a Lenze profibus inverter. In this FB I also use stat variables. The instance DB holds the drive failure bit. (Which is a stat variable of the type bool).
Now I need to make alarms on my HMI if a drive has tripped. The quickest way is that the alarmlist is looking directly to the stat bit inside the instance DB.
Other option: Drive failure is output of FB. I which case I need to uses some merker/bit to link to this output. This cost me extra memory for the same information.
Is it a bad way of programming to look directly into the stat variables of an FB. (read only!)
Just want to know how you feel about it. To me it looks to be the simplest way but it doesn't feel right.
Now I need to make alarms on my HMI if a drive has tripped. The quickest way is that the alarmlist is looking directly to the stat bit inside the instance DB.
Other option: Drive failure is output of FB. I which case I need to uses some merker/bit to link to this output. This cost me extra memory for the same information.
Is it a bad way of programming to look directly into the stat variables of an FB. (read only!)
Just want to know how you feel about it. To me it looks to be the simplest way but it doesn't feel right.