Phase 2 - Resolve Compilation Warnings
· One min read
Today's Tasks
info
Directly below are links to project issues. Use the sidebar for in-blog navigation --->
- Compilation Warnings
Compilation Warnings
_STD_PhaseBasic
The Formal Parameter -
Array[*]"Optimized block access" allows the use of the Array[*] formal parameter.
With Array[*], arrays with variable length can be transferred to functions and function blocks.
- Set the block attributes property "Optimized block access" to TRUE, which enables the use of the
Array[*]formal parameter. WithArray[*], arrays with variable length can be transferred to functions and function blocks. - Split the Interlock and RunningFault block parameters each into two formal parameters, as shown below.
![Use of Array[*]](/docs/assets/images/img1-838fd61dee0c0233fc3be9a4f3045020.png)
- deleted all **** LOGGING **** networks, as not used and caused compilation errors.
- Replaced the function
_STD_CondEvaluationwith a newly created function_stdConditionEvaluation. This function written in SCL makes use ofArray[*]and symbolic indirect addressing, i.earray[index].variable. - Updated block calls and actual parameters of
_STD_PhaseBasicthroughout code base. - Program Blocks > Compile > Software(rebuild all).