.. first line of object.rst template .. first line of pou-object.rst template .. first line of fb-object.rst template .. <% set key = ".fld-CanOpenCheck.CanOpenCheck_FB" %> .. _`.fld-CanOpenCheck.CanOpenCheck_FB`: .. <% merge "object.Defines" %> .. <% endmerge %> .. index:: single: CanOpenCheck_FB .. _`CanOpenCheck_FB`: CanOpenCheck_FB (FB) -------------------- FUNCTION_BLOCK CanOpenCheck_FB .. <% merge "object.Doc" %> Name : CanOpenCheck(FB) Datum : 2018-09-17 Beschreibung : Abfrage des CanOpen-DEVICE- & ERROR-STATE des Masters und angeschlossenen Slaves + Abfrage des DEVICESTATE + Abfrage von DEVICEERROR + Beginnend ab NodeID=0 (Master), SlaveID fortlaufend ab ID1... Anzahl eintrage unter Konstante _MAXNODEID .. <% endmerge %> .. <% merge "object.iotbl" %> InOut: +--------+--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | Scope | Name | Type | Initial | Comment | +========+====================+=============================+=============+===========================================================+ | Input | \_byNetzwerk | BYTE | 1 | 1 := CAN0 , 2 := CAN1 ... | + +--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | | \_wCANTimeout | WORD | 500 | Timeout in ms. Hinweis:Nicht erreichbare Slaves laufen in | | | | | | den Timeout | + +--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | | \_MaxNodeID | BYTE | 10 | Maximale NodeID 1..127 | +--------+--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | Output | \_sFBVersion | STRING(20) | '3.5.13.11' | | + +--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | | \_byLocalID | BYTE | 0 | | + +--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | | \_pzaDeviceState | POINTER TO ARRAY | | DEVICESTATE, Hieraus lesender Zugriff von Extern | | | | [0.._MAXNODEIDCON] OF | | | | | | CIA405.DEVICE_STATE | | | + +--------------------+-----------------------------+-------------+-----------------------------------------------------------+ | | \_pzaLocalCanState | POINTER TO ARRAY | | DEVICEERROR, Hieraus lesender Zugriff von Extern | | | | [0.._MAXNODEIDCON] OF | | | | | | CIA405.CANOPEN_KERNEL_ERROR | | | +--------+--------------------+-----------------------------+-------------+-----------------------------------------------------------+ .. <% endmerge %> .. last line of fb-object.rst template .. last line of pou-object.rst template .. last line of object.rst template