mirror of
https://github.com/thiagoralves/OpenPLC.git
synced 2025-05-09 00:21:52 +08:00
Small changes
- Corrected buffer declaration on OPLC Compiler - Changed OPLC Compiler folder name - Corrected FC 04 on Modbus
This commit is contained in:
parent
7f39019bc2
commit
0543021448
BIN
OPLC_Compiler
Executable file
BIN
OPLC_Compiler
Executable file
Binary file not shown.
BIN
OPLC_Compiler_source/OPLC_Compiler
Executable file
BIN
OPLC_Compiler_source/OPLC_Compiler
Executable file
Binary file not shown.
@ -484,14 +484,14 @@ void CompileAnsiC(char *dest)
|
|||||||
"#endif\n"
|
"#endif\n"
|
||||||
"\n"
|
"\n"
|
||||||
"/* Below is the definition of the internal buffers for I/O and memory.*/\n"
|
"/* Below is the definition of the internal buffers for I/O and memory.*/\n"
|
||||||
"SWORD AnalogInputBuffer0[100];\n"
|
"SWORD AnalogInputBuffer0[BUFFER_SIZE];\n"
|
||||||
"SWORD AnalogOutputBuffer0[100];\n"
|
"SWORD AnalogOutputBuffer0[BUFFER_SIZE];\n"
|
||||||
"BOOL DiscreteInputBuffer0[100];\n"
|
"BOOL DiscreteInputBuffer0[BUFFER_SIZE];\n"
|
||||||
"BOOL CoilsBuffer0[100];\n"
|
"BOOL CoilsBuffer0[BUFFER_SIZE];\n"
|
||||||
"\n"
|
"\n"
|
||||||
"SWORD MemBuffer0[100];\n"
|
"SWORD MemBuffer0[BUFFER_SIZE];\n"
|
||||||
"SWORD MemBuffer1[100];\n"
|
"SWORD MemBuffer1[BUFFER_SIZE];\n"
|
||||||
"SWORD MemBuffer2[100];\n"
|
"SWORD MemBuffer2[BUFFER_SIZE];\n"
|
||||||
"\n"
|
"\n"
|
||||||
"/* U_xxx symbols correspond to user-defined names. There is such a symbol\n"
|
"/* U_xxx symbols correspond to user-defined names. There is such a symbol\n"
|
||||||
" for every internal relay, variable, timer, and so on in the ladder\n"
|
" for every internal relay, variable, timer, and so on in the ladder\n"
|
@ -427,7 +427,7 @@ int Modbus::Run(unsigned char *reply)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//****************** Read Input Registers ******************
|
//****************** Read Input Registers ******************
|
||||||
else if(FC == MB_FC_READ_HOLDING_REGISTERS)
|
else if(FC == MB_FC_READ_INPUT_REGISTERS)
|
||||||
{
|
{
|
||||||
ReadInputRegisters();
|
ReadInputRegisters();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user