Download project
Backgammon game for CODESYS. The project is realized with the Sequential Function Chart (SFC).
The Sequential Function Chart (SFC) is a graphically oriented language which allows to describe the chronological order
of particular actions within a program.
Description of the game:
CODESYS plays with the blue stones from right bottom to right top. You play with the red stones from right top to the right bottom.
The central component of the game Backgammon.project
is the program PLC_PRG
.
The program is implemented in Sequential Function Chart (SFC). Each game step is represented by a SFC action.
The status of game and the position of the stones are stored in the function block FB_Board
.
The visualization Vis_Board
displays the board and the state of the function block FB_Board
.
System requirements and restrictions | Info |
---|---|
Programming System | CODESYS Development System Version 3.5.14.0 or higher |
Runtime System | CODESYS Control Version 3.5.14.0 |
Required Accessories | - |