[0c56f4]: / speed-cube-solver.project  Maximize  Restore  History

Download this file

32 lines (25 with data), 128.3 kB

-------------------------------------------------------------------------------
PLC_PRG
-------------------------------------------------------------------------------


PROGRAM PLC_PRG

-------------------------------------------------------------------------------
cube
-------------------------------------------------------------------------------


FUNCTION_BLOCK cube

VAR
    facet: ARRAY [..] OF ;
END_VAR
// if you unfurl a cube:
//        0 0 0 0
//        0 0 0 0
//        0 0 0 0
//        0 0 0 0
//2 2 2 2 5 5 5 5 3 3 3 3 4 4 4 4
//2 2 2 2 5 5 5 5 3 3 3 3 4 4 4 4
//2 2 2 2 5 5 5 5 3 3 3 3 4 4 4 4
//2 2 2 2 5 5 5 5 3 3 3 3 4 4 4 4
//        1 1 1 1 
//        1 1 1 1 
//        1 1 1 1 
//        1 1 1 1 
// maybe a better number scheme later, but for now it works.