May I comment my C-code?

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg This article applies to C-code within C-blocks that have been created by a user. The description is not valid for C++-blocks that have been created by a user.

Comment your C-code within an C-block according to ANSI C or C90:

Example for a comment
V(OUT) = V(IN1) + V(IN2); /* Your comment on the C-code. It may have one or more lines. */

Do not enter any comments in C++ style for a C-block because such comments are not supported by logi.CAD 3.

// This comment will produce an error, when you are loading the application onto the PLC.
V(OUT) = V(IN1) + V(IN2);

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg logi.cals recommends to install and use the most current versions of logi.CAD 3 and the runtime system so that the latest features and problem fixes according to the release notes are provided in the used version.


Did this article help you? Did you find the requested information in this user documentation?
If not, contact the support team of logi.cals. State your questions or suggestions to improve/enhance the user documentation as detailed as possible.