blog Discussion
atone
blog
(Discussion)
Forum for blog comments
Last updated: 2024-01-04
(no subject)
atone
wiki
(Thread)
Last updated: 2024-01-04
Home
atone
wiki
(WikiPage)
Project Members: atone (admin)
Last updated: 2024-01-04
Post by ewi04 on Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
CODESYS Forge
talk
(Post)
Nice to hear that I'm not the only one. I share your suffering. I was on the verge of doing the same.
Last updated: 2024-01-04
Home (version 1) discussion
dannew
wiki
(Thread)
Home (version 1) discussion
Last updated: 2024-01-04
wiki Discussion
domoticom
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-01-04
blog Discussion
domoticom
blog
(Discussion)
Forum for blog comments
Last updated: 2024-01-04
Post by sebastian-hk on Codesys auf einen Cortex M4 lauffähig machen
CODESYS Forge
talk
(Post)
Wichtig ist zudem auch noch zu wissen, ob der Cortex M4 Prozesser für eine Codesys Laufzeit ausreicht, oder ob es einige Einbußen gibt. Hat da jemand Praxiserfahrungen sammeln können? Wie es bei Codesys steht, wird kein Betriebssystem wie Linux oder Windows bei diesem Prozessor benötigt. Somit müsste dieser performant genug sein oder sehe ich das falsch?
Last updated: 2024-01-04
Post by domoticom on multiply gives negatives
CODESYS Forge
talk
(Post)
Hi, Attached net gives sometimes negatives, what am I doing wrong ? PS: detectie_nalooptijd_s = INT
Last updated: 2024-01-04
Codesys auf einen Cortex M4 lauffähig machen
CODESYS Forge
talk
(Thread)
Codesys auf einen Cortex M4 lauffähig machen
Last updated: 2024-01-04
(no subject)
domoticom
wiki
(Thread)
Last updated: 2024-01-04
Home
domoticom
wiki
(WikiPage)
Project Members: domoticom (admin)
Last updated: 2024-01-04
Post by tvm on multiply gives negatives
CODESYS Forge
talk
(Post)
It's probably because you have an INT in the input to the MUL function, which will then try to output an INT as well. INT variables can only handle values of -32768 to 32767. Your value of 523000 won't fit in an INT, so it turns into an invalid number. Use a DINT. This is usually better for working with time values anyway, because time values are all 32 bit. Or if you can't, use INT_TO_DINT(gvlp.detectie_nalooptijd_s) in the input to the MUL function.
Last updated: 2024-01-04
wiki Discussion
jgroher
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-01-04
Post by tvm on Function block method default arguments
CODESYS Forge
talk
(Post)
This works for me in Schneider Machine Expert 2.2, which is based on Codesys 3.5.19. It did not work in Machine Expert 2.1, which was based on Codesys 3.5.16. METHOD PUBLIC Method1 : INT VAR_INPUT TestVar: INT:= 5; END_VAR Method1:= TestVar; PROGRAM SR_Main VAR TestFB: TEST_FB; Var1: INT; END_VAR Var1:= TestFB.Method1();
Last updated: 2024-01-04
multiply gives negatives
CODESYS Forge
talk
(Thread)
multiply gives negatives
Last updated: 2024-01-04
Post by tvm on multiply gives negatives
CODESYS Forge
talk
(Post)
you might have some slight inaccuracies with using a REAL. See here for an explanation: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019ZSMSA2&l=en-US It might not matter, depends on how accurate you need it. I usually stick with integer types for something like this
Last updated: 2024-01-04
Post by domoticom on multiply gives negatives
CODESYS Forge
talk
(Post)
thnx, meanwhile I added a INT_TO_REAL, now it works. Can I leave it like this or better DINT ?
Last updated: 2024-01-04
Post by atone on File Creation Issue
CODESYS Forge
talk
(Post)
Found it! Set ForceIecFilePath to 0 in CODESYSControl.cfg
Last updated: 2024-01-04
Post by joanm on Function block method default arguments
CODESYS Forge
talk
(Post)
The new TwinCAT 4026 will add those default parameters, as TwinCAT drinks from Codesys I guess that will be implemented soon (or maybe, it already is given what tvm says in the previous post).
Last updated: 2024-01-04
Function block method default arguments
CODESYS Forge
talk
(Thread)
Function block method default arguments
Last updated: 2024-01-04
wiki Discussion
yuvanandhanan
wiki
(Discussion)
Forum for wiki comments
Last updated: 2024-01-04
blog Discussion
yuvanandhanan
blog
(Discussion)
Forum for blog comments
Last updated: 2024-01-04
(no subject)
yuvanandhanan
wiki
(Thread)
Last updated: 2024-01-04
Home
yuvanandhanan
wiki
(WikiPage)
Project Members: yuvanandhanan (admin)
Last updated: 2024-01-04