- enable the "Override target default maximum identifier length" option to edit the "Maximum identifier length" text box
- if the length is set to <31, it throws the following error:Error using plc_builder (line 49)Invalid length specified for PLC Coder identifiers (see the 'PLC Code Generation -> Identifiers' pane of theConfiguration Parameters dialog). Identifier length must be greater than or equal to 31.Error in plcgeneratecode (line 20) codegenFiles = plc_builder('generate_plc_code',subsystemH, true, true);
- if the length >=31, including 255, it can generate code OK. Ideally you would want to match this value to the limitation of the IDE code limit, which you can check from the code generation identifier default max length.
