Skip to content

Commit

Permalink
Add get value to default program
Browse files Browse the repository at this point in the history
  • Loading branch information
sclaiborne committed Apr 19, 2024
1 parent db07557 commit ca5034f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
44 changes: 22 additions & 22 deletions example/AsProject/Logical/Programs/Default/Main.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

#include <bur/plctypes.h>

#ifdef _DEFAULT_INCLUDES
#include <AsDefault.h>
#endif

void _INIT ProgramInit(void)
{

}

void _CYCLIC ProgramCyclic(void)
{

}

void _EXIT ProgramExit(void)
{

}


#include <bur/plctypes.h>

#ifdef _DEFAULT_INCLUDES
#include <AsDefault.h>
#endif

void _INIT ProgramInit(void)
{

}

void _CYCLIC ProgramCyclic(void)
{
varGetValue(&var);
}

void _EXIT ProgramExit(void)
{

}
11 changes: 3 additions & 8 deletions example/AsProject/Logical/Programs/Default/Variables.var
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@

VAR

END_VAR

VAR CONSTANT

END_VAR
VAR
var : varVariable_typ;
END_VAR

0 comments on commit ca5034f

Please # to comment.