Really, Insert an emty box in OB1 right?In TIA/simatic manager insert an empty box and type in FC + number.
I can't thank you enough bro.FC has access to parameters and temporary data. The temporary data is not "remembered" between scans.
FB has access to parameters, temporary data (as FC) and static data which is remembered between scans. Parameters and static data are stored in data blocks.
wrt to simulating analogue values, which platform (TIA or Classic) and CPU are you using?
plcsimit all depends where you have addressed the analogue input and where the program is running. Will the program be running in a real cpu or plcsim - and which cpu model?
L MySimulatedValue
T IW200
L IW200 //read analogue input and scale etc
Please forgive me,If the analogue input is addressed in the process image, you can write to the image to simulate the analogue input.
e.g.
Code:L MySimulatedValue T IW200 L IW200 //read analogue input and scale etc
Oh, please how can I simulate with slideYes you could use the slide using PLCSIM - I was assuming you were going to write some code to simulate a process hence the need to simulate the analogue input.