Siemens In InOut and Out in FBs

Galaniz

Member
Join Date
Feb 2012
Location
Corpus Christi
Posts
34
In Step 7, does anyone one if there is a problem with using a variable declared as in the OUT area of FB interface as an input within the logic of the FB itself? Sometimes the program will not let me and sometimes it will. Do I need to change all data that will be used somewhere on the input side of the FB logic to InOut?

Thanks
 
If its only internal in the fb make it a stat
If you need it outside of the call make it an input output
 
For example, I have several Outputs for different failures: Fail_to_start, Fail_to_stop, Limit_switch_fail.
I write the failure data to these three bits then later in the FB I read from them to assign the data to a general failure bit. Step 7 has allowed this, but in other occasions, it does not allow me to read from an output at all.
 
IN_OUT's are only critical in FC's.

In FB's all parameters except TEMP's are held in the IDB, therefore an output state is remembered internally.
 

Similar Topics

Gents - hope somebody can help out, I've been tasked with fixing an OLD SCADA system. I've got an S7-226 PLC thats configured for Modbus comms via...
Replies
2
Views
1,451
I have an block to control pneumatic movements. There are some inputs to the start and end positions, the back and forward switchs, enables...
Replies
5
Views
1,637
I acquired (5) 6ES7-216-2AD00-0XB0, Simatic S7 216-2 PLC that I would like to program. I do have a version of Simatic S7 programming software...
Replies
4
Views
16,595
I have searched the manuals and website for a pinout diagram of the communication cable for a Siemens MP370 to AB PLC (5/04) serial RS-232. Does...
Replies
1
Views
7,415
I need an extra PPI cable at work for programming and S7-200. The type is 9 pin to 9 pin. Does anyone here know the pin out for this cable? And...
Replies
19
Views
51,226
Back
Top Bottom