runtime dynamic modbus devices
CODESYS Forge
talk
(Thread)
runtime dynamic modbus devices
Last updated: 2026-02-26
Home
hienvuong1311
wiki
(WikiPage)
Project Members: hienvuong1311 (admin)
Last updated: 2026-02-26
Home (version 1) discussion
ilya-vah
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-02-26
wiki Discussion
locoacm
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-02-26
blog Discussion
locoacm
blog
(Discussion)
Forum for blog comments
Last updated: 2026-02-26
(no subject)
locoacm
wiki
(Thread)
Last updated: 2026-02-26
Home
locoacm
wiki
(WikiPage)
Project Members: locoacm (admin)
Last updated: 2026-02-26
Home (version 1) discussion
kunal-pinetics
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-02-26
Home (version 1) discussion
lschwellinger
wiki
(Thread)
Home (version 1) discussion
Last updated: 2026-02-26
wiki Discussion
miku
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-02-27
blog Discussion
miku
blog
(Discussion)
Forum for blog comments
Last updated: 2026-02-27
(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