TurboCharger
Member
I am new to siemens S7 and trying to understand how FB,DB and FC are intended to work by simulating programs in plcsim. I created a FB which is only used once throughout the program. The assign DB has it 2 outputs (actual parameters). Since I am only using this FB once, is it possible to use the output formal parameters ( inside FB) to control contacts, inputs to FCs & FBs? I know I could have created FC instead of FB and assigned M,Q, or DBX at the actual parameter but I am trying to understand what can and can not be done in S7 and what's acceptable. Through the forum, other programmers stated instant DB is just a DB and can be used anywhere throughout the program. I used instant DB parameters as inputs & outputs throughout the program as well as formal parameters; all working in plcsim. Would this cause a problem in a real project?