Flexs Q5 Resources
Firmware Downloads:
Download the latest firmware here!
Changelog:
V86
New Features
- Logic scripting now supports the complete javascript Math object with all functions and constants
- Better ModBUS TCP Support from Logic
- Onboard Logic Script now has on the fly syntax checking to help catch and highlight accidental mistakes
- Onboard Logic support for making web requests and running a web server, ideal for exchanging data between Q5’s or for sending JSON formatted measurements to a remote server.
- Onboard Logic has been simplified and importing the built in functions is no longer required.
A complete migration guide is being published, contact FlexSCADA for immediate assistance. - Added Unit ID option to MorningStar plugin allowing multiple chargers to share a common IP address
Bug Fixes
- BOOL type custom feeds now show up correctly on the onboard display
- More responsive web server
- Resolved issue which resulted in a occasional random reboot when ping probes or temp sensors were added and removed.
- Fixed issue that prevented or delayed config from being applied under certain circumstances
Breaking Changes
- Logic scripts from prior firmware versions may not operate correctly until changes are made, a complete migration guide is planned, contact us for immediate assistance.
Brief summary of logic changes required- Function definitions at the top of code is no longer required
- All peripherals now have built in functions for access, refer to the built in examples for reference
V85
New Features
- Scripting function for querying when a digital temp sensor was last updated
- Scripting function for querying if the ADC is operating correctly
- Support for interfacing to the BME280 and BME680 temperature, pressure and humidity sensors over the digital expansion port I2C bus.
- ModbusTCP Discrete Input polling support to the onboard scripting library
- Device time update from web interface
Updated Features / Bug Fixes
- Improved memory card support (reliability and speed)
- Improved digital temperature sensor bus stability and error handling
- Misc web interface updates
- SNMP MIB file
Breaking Changes
- Customers using the modbus functions from logic scripting will need to make changes, see migration from V8x to V85 (Below)
Migrating V8X to V85
Changes were made to the onboard scripting functions that altered the way modbus getReg and setReg were used, instead of returning the value immediatly they return the status of the call, the value is then later queried with a call to mbResult() function. This is a change from the previous method of requesting the status of the last modbus operation.
See the below change as an example
Old Method
mbConnect(‘162.216.185.244’,502,1); // Connect to host on port 502 with ModBUS ID 1
mbSetReg(3,’F32BADC’,ch2.avg);
let value = mbGetReg(5,’F32BADC’);
if(mbGetStatus() === 0){ // Check the status of the last command
setFeed(0,value);
} else {
print(“Error reading modbus register”);
}
mbDisconnect();
New Method
mbConnect(‘162.216.185.244’,502,1); // Connect to host on port 502 with ModBUS ID 1
mbSetReg(3,’F32BADC’,ch2.avg);
if(mbGetReg(5,’F32BADC’)=== 0){ // Check the status of the last command
setFeed(0,mbValue());
} else {
print(“Error reading modbus register”);
}
mbDisconnect();
Please refer to the onboard device examples for exact syntax for each of the new functions.
No other changes are necessary to update to V85