Skip to content

Commit

Permalink
Create startPM.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ashoksharma842 authored Dec 13, 2023
1 parent 3bf368b commit cde129a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions startPM.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
echo "power module test script"
echo
# Module 1 sets the output of 700V, 20A
# 700V = 700*1000 = 700000mV = 0xAAE60
# 20A = 20*1000 = 20000mA = 0x4E20
cansend can1 1307C090#00004E20000AAE60

# Module 1 start
cansend can1 1307C090#0200000000000055

while :
do
# read the status of module 1
cansend can1 1307C090#0100000000000000
sleep 1s
done

0 comments on commit cde129a

Please sign in to comment.