plcforum.uz.ua

International PLC Forum
It is currently Mon May 29, 2017 11:45 pm

All times are UTC + 3 hours


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat May 06, 2017 11:13 am 

Joined: Sat May 06, 2017 10:49 am
Posts: 1
Hello everyone,

I have just started learning about PLCs as a hobby. I have prepared following setup,

Main Controller
Controller: S7-1200
Inputs: Push Buttons (x2) (turns a lamp connected at ET station on and off)
Output: None

ET Station
ET: ET200S
IM: IM 151-3
Inputs: None
Outputs: Lamp

Main controller and ET stations are connected through PROFINET. When the buttons are pressed at Main Controller, the lamps at ET stations are turned on or off.

Question: I was thinking that if I were to add more ET stations in a daisy chain manner, is there a possibility to make just one function to turn on/off the lamp and based on the parameter passed to the function, it decided with I/O tag to refer to.

I apologise if the question is not clear, please let me know if so and I will try to explain it in a better way.

Thanks!


Top
 Profile  
 
PostPosted: Sat May 06, 2017 12:35 pm 
Site Admin

Joined: Thu Feb 16, 2006 6:25 pm
Posts: 2965
Location: Russia
Code:
---|Button|-------------(Lamp)


Top
 Profile  
 
PostPosted: Wed May 10, 2017 4:33 pm 

Joined: Sat Jun 13, 2009 3:25 pm
Posts: 102
Location: Europe
Hello,
Use indirect adressing, for S7-1200, take a look at peek and poke instruction.
https://support.industry.siemens.com/cs/document/59623719/in-step-7-(tia-portal)-how-can-you-implement-indirect-addressing-in-an-scl-program-?dti=0&lc=en-WW
Best regard.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: Bing [Bot], toro_seduto and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by International PLCforum® Forum Software © PLCforum
Mobile version