I am porting code developed in Horner Cscape
first off, I see an error message indicating hundreds of errors
Is there a way to see the complete list of errors ? and then to jump to the statement containing the error ? It appears that finding errors means looking for the red-flags in the code
so far almost all of the errors in the code are on bitfield access i.e.:
Variable_Name.1
I checked the 61131 ST spec and it appears this form is consistent
It seems that the PLCnext Engineer excludes simple static numerics and mandates „identifiers“
what is the scoop on this ?
What is the required syntax to define constant identifiers of the form required for bit access?
On the question of constant identifiers, you can define a constant in the Variable sheet of any POU like this:
image.pngIn this case the „identifier“ is FORTY_TWO. The initial value of the constant variable cannot be changed. The bits in the variable can be accessed using the notation described in the help:
Partial Access to ANY_BIT Variables
');\n mywindow.document.close(); \n mywindow.focus();\n setTimeout(function () {\n mywindow.print();\n mywindow.close();\n }, 1000)\n return true;\n}\r\n\r\n\r\n
According to the standard, this type of partial access is only available on variables of the type ANY_BIT, which incudes variables of type BOOL, BYTE and WORD.
Generic Data Types according to IEC 61131-3
');\n mywindow.document.close(); \n mywindow.focus();\n setTimeout(function () {\n mywindow.print();\n mywindow.close();\n }, 1000)\n return true;\n}\r\n\r\n\r\n
Hi Kurt,
you can open the MESSAGES window to see all error messages. A jump to the error location is possible via context menu command or by double clicking the message itself.

Cheers
DivisionByZero