Need help on Control builder Plus
I have a STEP7 prj that i am converting it to codesys but got stucked on this program. It's easy in Siemems that you create a DB with list of variables to move with SFC20.
How we can achieve this in codesys? Do we have alternate way to do this? I dont think we make data blocks in CBP (control Builder plus herein after). All i have is list of global variables.
How to do it on CBP?
Please need your suggestion!
please see the pics for your reference..
Voted best answer
One possibility in Codesys is to use ARRAY to move and store your variables.
From Codesys help:
One-, two-, and three-dimensional fields (arrays) are supported as elementary data types. Arrays can be defined both in the declaration part of a POU and in the global variable lists. Maximum 9 dimensions may result from nesting of arrays ( "ARRAY[0..2] OF ARRAY[0..3] OF …" ).
Card_game: ARRAY [1..13, 1..4] OF INT;
Source: Codesys help