There are many different ways to do that. I normally use the SELECT instruction within my main loop. See here for some ideas on how to do it. This guy creates awesome content on his website.
Remote Start: Siemens PLC S1500 / Fanuc R30iB : Profinet Comm
-
MoEL -
August 24, 2021 at 2:20 PM -
Thread is Resolved
-
-
There are many different ways to do that. I normally use the SELECT instruction within my main loop. See here for some ideas on how to do it. This guy creates awesome content on his website.
Thank you,
The approach with a Main program calling subprograms works fine, but I would like learn the approach where you select a program from plc and sent signal to run it in the robot.
Thanks again
-
Set the start type to PNS
Name your programs PNS0001, PNS0002, etc
Have the PLC set the UI[9-16] bit to select the PNS number you want
Pulse PNS strobe [UI17]
Pulse production start UI[18]
-
Set the start type to PNS
Name your programs PNS0001, PNS0002, etc
Have the PLC set the UI[9-16] bit to select the PNS number you want
Pulse PNS strobe [UI17]
Pulse production start UI[18]
So, if I need to select PNS0001, I have to set UI[9],
for PNS0002 => set UI[10]
for PNS0003 => set UI[11]
and so on
Is this right?
Thanks again
-
Not exactly. You have to send the binary representation of the decimal PNS number you're trying to call.
So, if you need to select PNS0001, set UI[9],
for PNS0002 => set UI[10]
for PNS0003 => set UI[10] AND UI[9]
for PNS0004 => set UI[11]
for PNS0005 => set UI[11] AND UI [9]
etc
-
I normally prefer STYLE instead of PNS due to the possibility of a more descriptive naming convention for the programs.
-