IFGetState.CONFIRM=TRUETHEN  //GetStatesuccessful.OutputSTATEcontainsresult.  State:=GetState.STATE;  xEnable:=FALSE;ELSIFGetState.ERROR<>CIA405.CANOPEN_KERNEL_ERROR.CANOPEN_KERNEL_NO_ERRORTHEN  //anerroroccuredwhileprocessingGetStatee.g.wrongNodeIDorNetworkID  xEnable:=FALSE;END_IF//GetStateneedstheCANnetworkandthedeviceNodeID(inputDEVICE).GetState(   ENABLE:=xEnable,       NETWORK:=CANbus.NetId+1,//CODESYSNetIdstartsby0(thenumberenteredintotheCANbusconfigurator);CiA405NETWORKby1;Thatisthereasonwhywehavetoincrementithere.       TIMEOUT:=0,//notimeoutforGetStateneededbecauseitisprocessedlocally.      DEVICE:=CANopenRemoteDevice.NodeID//Note:IfyouwanttogetthestateoftheCANopenManager,youcanusetheCANopenManagerNodeIDorNodeID0.                        //ACANopenManagergoestoOPERATIONALifallmandatory(=notoptional)slavesareoperational.);
Grüße
plcmax
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo Forumsmitglieder.
In V2 konnte ich den NodeStatus der CanOpen-Teilnehmer abfragen.
Diese Funktion finde ich in V3 nicht mehr.
Gibt es da neue Bausteine?
Hallo,
das geht mit der CiA405.library.
Aus dem Store Beispiel:
https://store.codesys.com/canopen-examp ... re=default
Grüße
plcmax
Hallo plcmax,
vielen Dank für den Tipp, werde das mal versuchen.
LG
eurowolf