1
0
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:
thiagoralves 2016-02-10 18:38:05 -06:00
parent 7f39019bc2
commit 0543021448
94 changed files with 8 additions and 8 deletions

BIN
OPLC_Compiler Executable file

Binary file not shown.

Binary file not shown.

View File

@ -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"

View File

@ -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();
} }