mCore Firmware Ver 01.10
Ver 2019-Oct-29
Page
38
of
97
Modbus Read/Write Pseudo Code Examples
Sending Data to eRCM Express™:
Modbus.Data(1) = 1 // Current Hardware Load Step
Modbus.Data(2) = 206.5 // Current Suction Pressure (psiG) into First Stage
Modbus.Data(3) = 318.9 // Current Discharge Header Pressure (psiG) out of Last Stage
Modbus.Data(4
) = 1158 // Unit’s Speed (RPM)
Modbus.Data(5) = 74.5 // First Stage Suction Gas Temperature (degF)
Modbus.Data(6) = 128.2 // Second Stage Suction Gas Temperature (degF), when required
Modbus.NumberOfValues = 6 // 6 is the number of input values (1 Value = two 16-bit regs)
Modbus.Address = 40001 // 40001 is the starting address for the input values
Modbus.WriteData() // Write new input values to the Modbus registers.
Force eRCM Express™ to Recalculate New Compressor Performance:
Modbus.Data(1) = 1 //
“1” is fl
ag to recalculate
Modbus.NumberOfValues = 1 // 1 is the number of input values (1 Value = two 16-bit regs)
// Reg#40075 is ideal if only using the shorter Quick Writes list (smaller Modbus block)
Modbus.Address = 40075 // 40075 is the address for
ForceERCMExpressCalculations
OR
Modbus.Address = 40273 // 40273 is the address for
ForceERCMExpressCalculations
Modbus.WriteData() // Write value to the Modbus register.
Waiting for eRCM Express™ to Complete Calculations – Using IsKernelBusy Method:
DIM eRCMExpressCount as Integer
Modbus.NumberOfDataValues = 1
Modbus.Address = 40275 // The address of the "IsKernelBusy" register.
// Will return false (0) when eRCM Express has completed
// all of its performance and safety calculations.
// This usually takes less than 250 ms.
eRCMExpressCount = 0
DO
Sleep 20 // Sleep 20 ms
Modbus.ReadData() // Read data in the "IsKernelBusy" register.
If Modbus.Data(1) = 0 Then Exit DO // If 0, then calculations are now complete.
eRCMExpressCount = eRCMExpres 1
LOOP UNTIL eRCMExpressCount > 15 // Prevent Infinite Loop
IF eRCMExpressCount > 15 THEN
MSG “CRITICAL ISSUE: eRCM Express Unit does not appear to be returning data.”
// NOTE: If a Gateway device is between eRCM Express and PLC, then you may need
// to wait longer for updates to happen.
ELSE
…Now proceed with reading in eRCM Express data…
END IF
Waiting for eRCM Express™ to Complete Calculations – 250 ms Method:
Sleep 250 // Sleep at least 150 ms. eRCM Express will be done by then for MOST models.
// If model has lots of load steps (20+) or multiple stages (2+) then
// more time may be required to finish all of the calculations.
// 250-350 is usually the MOST you need to wait.
…Now proceed with reading in eRCM Express data…
Содержание eRCM Express
Страница 3: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 3 of 97 eRCM Express Package Contents ...
Страница 5: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 5 of 97 eRCM Express Contact and Support ...
Страница 7: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 7 of 97 eRCM Express Unit Installation ...
Страница 10: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 10 of 97 eRCM Express mCore User Interface Initial Setup ...
Страница 13: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 13 of 97 eRCM Express Hardware and Communications ...
Страница 15: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 15 of 97 eRCM Express Sending Reading Data Rates ...
Страница 17: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 17 of 97 eRCM Express Diagnostics Software ...
Страница 19: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 19 of 97 eRCM Express Uploading Modeling File s ...
Страница 23: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 23 of 97 eRCM Express Uploading a License File ...
Страница 25: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 25 of 97 eRCM Express Updating Unit Firmware ...
Страница 27: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 27 of 97 eRCM Express Changing LAN Settings ...
Страница 29: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 29 of 97 eRCM Express General Process ...
Страница 37: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 37 of 97 eRCM Express Pseudo Code Examples ...
Страница 40: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 40 of 97 eRCM Express Using Select Features ...
Страница 45: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 45 of 97 eRCM Express Change Current Modeling File via PLC ...
Страница 48: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 48 of 97 eRCM Express Miscellaneous Notes ...
Страница 57: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 57 of 97 List of All Active Reads COMMON CONTROL ITEMS ...
Страница 60: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 60 of 97 ERROR ARRAY AB Tag Name ...
Страница 61: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 61 of 97 LOAD ARRAY AB Tag Name ...
Страница 62: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 62 of 97 FLOW ARRAY AB Tag Name ...
Страница 63: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 63 of 97 STAGE ARRAY AB Tag Name ...
Страница 64: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 64 of 97 THROW ARRAY AB Tag Name ...
Страница 65: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 65 of 97 CYL_HE ARRAY AB Tag Name ...
Страница 66: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 66 of 97 CYL_CE ARRAY AB Tag Name ...
Страница 67: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 67 of 97 RANGES ...
Страница 68: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 68 of 97 eRCM Express Sample Pseudo Start Up Code ...
Страница 77: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 77 of 97 ...
Страница 78: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 78 of 97 eRCM Express Changes to Manual by Version ...
Страница 80: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 80 of 97 eRCM Express ADDENDUM I Load Step Selection Modes ...
Страница 82: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 82 of 97 eRCM Provides the following Load Step Selection Modes ...
Страница 87: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 87 of 97 eRCM Express ADDENDUM IV Determining Calculation Times ...
Страница 89: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 89 of 97 eRCM Express ADDENDUM V mCore Operations Manual ...
Страница 90: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 90 of 97 ...
Страница 91: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 91 of 97 ...
Страница 92: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 92 of 97 ...
Страница 93: ...mCore Firmware Ver 01 10 Ver 2019 Oct 29 Page 93 of 97 ...