(no subject)
miku
wiki
(Thread)
Last updated: 2026-02-27
Home
miku
wiki
(WikiPage)
Project Members: miku (admin)
Last updated: 2026-02-27
wiki Discussion
aurasame
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-02-27
blog Discussion
aurasame
blog
(Discussion)
Forum for blog comments
Last updated: 2026-02-27
(no subject)
aurasame
wiki
(Thread)
Last updated: 2026-02-27
Home
aurasame
wiki
(WikiPage)
Project Members: aurasame (admin)
Last updated: 2026-02-27
Post by fpawlak on How to register own component - CMAddComponent() or CMAddComponent2()
CODESYS Forge
talk
(Post)
Hi All, I wonder which way is correct or better? I would like to register my own component in order to use it in CMPLog. I can use CMAddComponent() or CMAddComponent2() to do it. The main difference is whether I provide udiCmpId myself or it will be generated by runtime. But I don't know which way is correct. Please look at those two examples below. I don't know if CMAddComponent2() is newer and then should be used? CMAddComponent() + providing my own udiCmpId //16#FFFF0000 for unknown myVendorId := 16#FFFF0000; myLibId := 1; myComponentId := myVendorId OR CMPID_IecCode OR myLibId; componentHandle := CMAddComponent(pszComponent:= 'myComponent', udiCmpId:= myComponentId, udiVersion:= 1, pResult:= ADR(result)); IF componentHandle <> RTS_INVALID_HANDLE AND result = CmpErrors.Errors.ERR_OK THEN LogAdd2( hLogger:= STD_LOGGER, udiCmpID:= myComponentId, udiClassID:= CmpLog.LogClass.LOG_ERROR, udiErrorID:= 0, udiInfoID:= 0, pszInfo:= 'myComponent regidtered succsefull.' ); ELSE LogAdd2( hLogger:= STD_LOGGER, udiCmpID:= CMPID_CmpMgr, udiClassID:= CmpLog.LogClass.LOG_ERROR, udiErrorID:= 0, udiInfoID:= 0, pszInfo:= 'Error while regidtering myComponent.'); END_IF CMAddComponent2() + udiCmpId generated by runtime componentHandle := CMAddComponent2(pszComponent:= 'myComponent2', udiVersion:= 1, udiCmpId:= ADR(myComponentId), pResult:= ADR(result)); IF componentHandle <> RTS_INVALID_HANDLE AND result = CmpErrors.Errors.ERR_OK THEN LogAdd2( hLogger:= STD_LOGGER, udiCmpID:= myComponentId, udiClassID:= CmpLog.LogClass.LOG_ERROR, udiErrorID:= 0, udiInfoID:= 0, pszInfo:= 'myComponent2 regidtered succsefull.' ); ELSE LogAdd2( hLogger:= STD_LOGGER, udiCmpID:= CMPID_CmpMgr, udiClassID:= CmpLog.LogClass.LOG_ERROR, udiErrorID:= 0, udiInfoID:= 0, pszInfo:= 'Error while regidtering myComponent2.'); END_IF
Last updated: 2026-02-27
wiki Discussion
cadinacio
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-02-27
blog Discussion
cadinacio
blog
(Discussion)
Forum for blog comments
Last updated: 2026-02-27
(no subject)
cadinacio
wiki
(Thread)
Last updated: 2026-02-27
Home
cadinacio
wiki
(WikiPage)
Project Members: cadinacio (admin)
Last updated: 2026-02-27
Post by aurasame on Codesys ControlWinV3x64 with EtherCat Slave
CODESYS Forge
talk
(Post)
Thank you very much! After reinstalling NPCap, everything is working perfectly. flash games
Last updated: 2026-02-27
wiki Discussion
rali
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-02-27
blog Discussion
rali
blog
(Discussion)
Forum for blog comments
Last updated: 2026-02-27
(no subject)
rali
wiki
(Thread)
Last updated: 2026-02-27
Home
rali
wiki
(WikiPage)
Project Members: rali (admin)
Last updated: 2026-02-27
Codesys ControlWinV3x64 with EtherCat Slave
CODESYS Forge
talk
(Thread)
Codesys ControlWinV3x64 with EtherCat Slave
Last updated: 2026-02-27
Home (version 1) discussion
aurasame
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-02-28
Home (version 1) discussion
acsom
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-02-28
Post by yannickasselin on Question about Demo License limitations for Modbus TCP communication and Fieldbus Instances
CODESYS Forge
talk
(Post)
As far as I know, there is no other limitations than the 2 hours limit. The demo mode should be plenty enough for testing purposes. Regarding instances. In the device tree, 1 master = 1 instance, no matter how many slaves the master is communicating with. But it is also possible that your Codesys runtime act as a slave. In this case, each slave in the device tree is one instance. You can also use the license metric tool in the IDE. This will tell you exactly how many instances you have in your project. https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_edt_device_licensed_software_metrics.html
Last updated: 2026-02-28
Question about Demo License limitations for Modbus TCP communication and Fieldbus Instances
CODESYS Forge
talk
(Thread)
Question about Demo License limitations for Modbus TCP communication and Fieldbus Instances
Last updated: 2026-02-28
Home (version 1) discussion
asahi
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-03-01
wiki Discussion
clerx
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-03-02
blog Discussion
clerx
blog
(Discussion)
Forum for blog comments
Last updated: 2026-03-02
(no subject)
clerx
wiki
(Thread)
Last updated: 2026-03-02