Beckhoff PLC--realize the counting of 1 per bit of Dword data type, that is, the number of "1" digits in the statistical type

The operation is as follows:

Build function:

insert image description here
insert image description here

Program test:
insert image description here

insert image description here

Test effect

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/weixin_41883890/article/details/129303101