Profinet Device Enable/Disable from program

emilg

Level-1
Beiträge
52
Reaktionspunkte
1
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello

I have ILC131 where i want to be able to turn Profinet ON and Off from Webvisit / Webserver.
I have looked in the Libary PLC Control, bur cant. find a FB for Profinet.

Can you help with that?

The biggest problem with leaving profinet enable all time, is that it is flashing Red in BF, if no Profinet master is connected. Then people thinks that the PLC is broken or there is a error in the program.

- Emil
 
Hello Emil,

you coud do it with the CPU_Contr fb. There you have to use a SET_VALUE_REQUEST with the Variable ID 0184 and the Value 1 (disable) or 0 (enable)

regards
Ulrich Kleinschmidt
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello

Thanks. But i can't find how to write that command to the PLC.
Can you help with a example, or a manual for that?

When i have the CPU_Control fb, i connected the Array's but i can't find where i have to make the request.
 
Hey Emil,

you could use it like in this screenshot. The variable udtError is an array of word with 2 fields, the variables udtSend and udtReceive are arrays of word with 5 fields.
With the xRequest, you send the CPU control to the ILC and after a reboot of the ILC the Profinet device function is enabled or disabled.
Unbenannt.PNG

best regards
Ulrich Kleinschmidt
 
Hello

Thanks, Now it worked.... ;)
I hav not looked what you was writing about 1 is Disable and 0 is Enable...

- Emil
 
Zurück
Oben