1. IPC上的USR灯如何使用?

 

LED灯有四种状态可以设定,分别是灭,红色,蓝色,绿色。在结构体E_UsrLED_Color中有对应说明。

控制LED需要使用的功能块为FB_SetLedColor_BAPI。


https://infosys.beckhoff.com/content/1033/tcplclib_tc2_system/4566933899.html?id=2684610655829531814

注:另一个类似的功能块FB_C69xxSetLedColor只支持i386平台,目前来说已经无法使用。

 

李坤峰 2023.1.10 编辑