Classes | |
struct | GlueVariable |
Defines the mapping for a glued variable. More... | |
Macros | |
#define | __LOCATED_VAR(type, name, ...) type __##name; |
#define | __LOCATED_VAR(type, name, ...) type* name = &__##name; |
#define | OPLC_GLUE_VARIABLE |
#define | OPLC_IEC_GLUE_VALUE_TYPE |
Enumerations | |
enum | IecGlueValueType { IECVT_BOOL = 0, IECVT_BYTE, IECVT_SINT, IECVT_USINT, IECVT_INT, IECVT_UINT, IECVT_WORD, IECVT_DINT, IECVT_UDINT, IECVT_DWORD, IECVT_REAL, IECVT_LREAL, IECVT_LWORD, IECVT_LINT, IECVT_ULINT, IECVT_UNASSIGNED, IECVT_BOOL = 0, IECVT_BYTE, IECVT_SINT, IECVT_USINT, IECVT_INT, IECVT_UINT, IECVT_WORD, IECVT_DINT, IECVT_UDINT, IECVT_DWORD, IECVT_REAL, IECVT_LREAL, IECVT_LWORD, IECVT_LINT, IECVT_ULINT, IECVT_UNASSIGNED } |
Functions | |
void | config_init__ (void) |
void | config_run__ (unsigned long tick) |
void | glueVars () |
int | modbus_set_slave (modbus_t *ctx, int slave) |
std::uint16_t const | OPLCGLUE_INPUT_SIZE (0) |
The size of the array of input variables. More... | |
std::uint16_t const | OPLCGLUE_OUTPUT_SIZE (0) |
The size of the array of output variables. More... | |
void | updateTime () |
Variables | |
TIME | __CURRENT_TIME |
IEC_BOOL * | bool_input [BUFFER_SIZE][8] |
IEC_BOOL * | bool_output [BUFFER_SIZE][8] |
const uint16_t | BUFFER_SIZE = 1024 |
IEC_BYTE * | byte_input [BUFFER_SIZE] |
IEC_BYTE * | byte_output [BUFFER_SIZE] |
unsigned long long | common_ticktime__ |
unsigned long long | common_ticktime__ = 50000000ULL |
IEC_DINT * | dint_memory [BUFFER_SIZE] |
IEC_UINT * | int_input [BUFFER_SIZE] |
IEC_UINT * | int_memory [BUFFER_SIZE] |
IEC_UINT * | int_output [BUFFER_SIZE] |
IEC_LINT * | lint_memory [BUFFER_SIZE] |
GlueVariable | oplc_input_vars [] |
GlueVariable | oplc_output_vars [] |
IEC_LINT * | special_functions [BUFFER_SIZE] |
#define __LOCATED_VAR | ( | type, | |
name, | |||
... | |||
) | type* name = &__##name; |
enum IecGlueValueType |
void config_init__ | ( | void | ) |
Definition at line 24 of file Config0.cpp.
void config_run__ | ( | unsigned long | tick | ) |
Definition at line 27 of file Config0.cpp.
int modbus_set_slave | ( | modbus_t * | ctx, |
int | slave | ||
) |
Definition at line 20 of file mock_io.cpp.
std::uint16_t const OPLCGLUE_INPUT_SIZE | ( | 0 | ) |
The size of the array of input variables.
std::uint16_t const OPLCGLUE_OUTPUT_SIZE | ( | 0 | ) |
The size of the array of output variables.
IEC_BOOL* bool_input[BUFFER_SIZE][8] |
IEC_BOOL* bool_output[BUFFER_SIZE][8] |
IEC_BYTE* byte_input[BUFFER_SIZE] |
IEC_BYTE* byte_output[BUFFER_SIZE] |
unsigned long long common_ticktime__ |
Definition at line 31 of file Config0.cpp.
unsigned long long common_ticktime__ = 50000000ULL |
Definition at line 31 of file Config0.cpp.
IEC_DINT* dint_memory[BUFFER_SIZE] |
IEC_UINT* int_input[BUFFER_SIZE] |
IEC_UINT* int_memory[BUFFER_SIZE] |
IEC_UINT* int_output[BUFFER_SIZE] |
IEC_LINT* lint_memory[BUFFER_SIZE] |
GlueVariable oplc_input_vars[] |
GlueVariable oplc_output_vars[] |
IEC_LINT* special_functions[BUFFER_SIZE] |