BATTERY LOW LEVEL OUTPUT
6 years 3 months ago #29532686
by saldiran
BATTERY LOW LEVEL OUTPUT was created by saldiran
hello ıwant hbl2360 with MicroBasic battery low level output ıwant Dout5 output connect relay if my battery 15 v under Dout5 active
ıdont MicroBasic helpme please
ıdont MicroBasic helpme please
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532689
by blake
Replied by blake on topic BATTERY LOW LEVEL OUTPUT
Hello
You will find the MicroBasic reference guide in Section 18 our User Manual
The query to read the battery volts is detailed on page 262 and the commands to activate and deactivate the digital outputs are detailed on pages 216 and 217
You will find the MicroBasic reference guide in Section 18 our User Manual
The query to read the battery volts is detailed on page 262 and the commands to activate and deactivate the digital outputs are detailed on pages 216 and 217
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532690
by saldiran
Replied by saldiran on topic BATTERY LOW LEVEL OUTPUT
I look at but I cold not
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532700
by saldiran
Replied by saldiran on topic BATTERY LOW LEVEL OUTPUT
Can you write code I looad driver and Imake test
I send today today my machine
I send today today my machine
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532704
by blake
Replied by blake on topic BATTERY LOW LEVEL OUTPUT
Please find the sample script attached
option explicit
' This script is provided "as-is", without warranty of any kind,
' expressed or implied, including but not limited to the warranties of
' merchatability, fitness for a particular purpose and
' noninfringemement. In no event shall Roboteq be liable for any claim,
' damages or other liability, arising from the use of the software"
' Detects if there is undervoltage at the battery.
' If the controller battery voltage reads back less than 15V, the digital output 1 will be enabled.
' Else the digital output will be disabled.
dim VBATT as integer 'declare variable
print("starting ... \r") ' let user know the script is running
top: 'beginning of loop
VBATT = getvalue(_VOLTS, 2) ' Reads battery voltage
print("Battery Volts = ", VBATT,"\r") ' Prints battery voltage (reported as actual voltage x10)
if VBATT < 150 then
setcommand(_DSET, 5) ' if battery voltage is less than 15V then set digital output 5 on
else
setcommand(_DRES, 5) ' else reset digital output 5 to off.
end if
wait(10) 'wait 10 mS
goto top 'return to top of loop
Please Log in or Create an account to join the conversation.
6 years 3 months ago #29532707
by saldiran
Replied by saldiran on topic BATTERY LOW LEVEL OUTPUT
Thank you so much
Please Log in or Create an account to join the conversation.
Time to create page: 0.089 seconds