Function Call in TIA and Simatic Manager like in AB's JSR

IdealDan

Member
Join Date
May 2017
Location
MA
Posts
480
Hi Guys,
A quick one please.



How do I call in a Function in TIA and Simatic Manager?


In AB, usually, JSR is created in Main Routine but for Siemens HOW?


Regards
 
In TIA/simatic manager insert an empty box and type in FC + number.
Really, Insert an emty box in OB1 right?


1. What is the difference between FC and FB?


2. Finally, How can I simulate Analog value please?


I'm really grateful

Regards
 
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?
 
Then either type in FC1 or the name of the fc (the editor will attempt to auto complete and give you a list of possible tag names)

fc2.jpg
 
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?
I can't thank you enough bro.
I really Appreciate.
Also, sorry for my late response please, I was out and now back.



For the Analog Simulation, I meant TIA with S7-300 PLC Please.
 
It 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?
 
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
 
Here's a better example that uses a simulate flag to either use the real analogue input or the simulated one.

sim1.jpg
 
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
Please forgive me,

Could you please clarify a little more?


I was thinking some thing like slide on PLCSIM and also move command
I'm lost. Please help more.


Regards
 
Yes 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.
 

Similar Topics

I created this FC and it compiles, but when I use it in my MAIN OB1, it appears to have two outputs. See pictures. What am I doing wrong here...
Replies
9
Views
1,467
Hiya - another TIA question I've a got a sequencer that on step 80 should run another function (blank search) The way I Run and Stop this...
Replies
18
Views
4,427
Hi, I'm learning GX Works 2 for upcoming project. I want to use ST Function Blocks in Ladder Program and it works if the FB(Structured text)...
Replies
5
Views
1,651
I'm struggling to implement the test case which is highlighted. What ends up happening is the servo starts when I turn the cycle on, but it...
Replies
3
Views
1,062
Hi all :) , I'm very new to CitectSCADA and Cicode programming, however have good programming experience in most major programming languages...
Replies
0
Views
1,246
Back
Top Bottom