Content
# #nino-well — 2025-08-10
**14:43 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862193817929):** I've got the VFD controlled from Modbus
**14:43 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862208247349):** Yeah??
**14:43 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862233543239):** Is there a bit or value I can set to test it from the mobile dashboard?
**14:44 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862246734689):** Can you write an integer?
**14:44 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862258499269):** If not, I can put program in place
**14:44 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862286441209):** The VFD requires a "1" written to start and a "6" written to stop
**14:45 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862302760189):** I can put program in place to write that based on a bit status if that's the best way
**14:46 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862409493979):** That might work. Or we can try an int register.
**14:47 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862425160959):** Two bits might be easier on the dashboard side
**14:48 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862481226909):** oh ok! standby.
**14:48 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862496972159):** can you write an int for speed control?
**14:48 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862509157749):** I believe so.
**14:48 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862517489429):** 400013
**14:48 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862524810639):** Want to give me modbus registers and I’ll see if I can change them
**14:48 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862528064229):** Oh perfect
**14:48 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862534139209):** Standby let me get set up
**14:51 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862691219989):** whats the current value of that regsite
**14:51 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862692022589):** r
**14:52 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862724305709):** 5000 for 50.00%
**14:52 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862751384389):** 16 bit int?
**14:52 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862763130389):** yes
**14:52 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862771584409):** is the plc still on 10.0.0.4?
**14:53 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862817413159):** I didn't change it. Let me verify
**14:56 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862967298709):** is 400013 from the VFD or a tag in the PLC?
**14:56 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754862974772019):** PLC
**14:56 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754862992586129):** not seeing 5000.
**14:56 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863009318939):** standby
**15:03 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863403947409):** do you see a 6?
**15:04 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863486449489):** getting zero. still trying things
**15:05 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863506610699):** can you change that 400004 value to something other than zero
**15:05 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863515023859):** yep
**15:05 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863541955859):** 3000
**15:05 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863556490699):** getting 3373
**15:05 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863558743339):** or 3372
**15:06 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863560185089):** its changing
**15:06 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863567491909):** still a little confused
**15:06 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863594282249):** should be 3000 steady
**15:06 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863602558199):** maybe you are 1 number off
**15:06 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863609687639):** ive tried to read in a block of 20
**15:07 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863628449719):** have you written to the plc? maybe something needs to be updated?
**15:07 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863643601859):** I just wrote to it
**15:07 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863670624909):** hey hacker!
**15:07 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863678935189):** haha
**15:08 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863680551169):** ive been watching
**15:08 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863687776539):** creepy
**15:09 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863773039569):** hm. ok. all yours.. ill mess around on the back end
**15:10 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863847366469):** I'm done with it unless you want me to do something for you.
**15:10 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863855481209):** input register? or holding register?
**15:11 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863865154349):** input is function code 3?
**15:11 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863887868709):** when I write to the vfd it's function 6
**15:11 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863895097189):** when I read it's function 4
**15:12 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863924521629):** oh wait
**15:12 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863930305259):** when I read it is function 3
**15:12 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754863943659309):** I've always gotten those backwards
**15:12 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754863948204489):** ok, i got it now
**15:13 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864007230919):** i have 5000
**15:13 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864010677089):** im going to try to change it now
**15:17 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864278070199):** cool i did it
**15:18 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864302288179):** cool indeed!
**15:18 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864312616689):** last step is doing from the dashboard
**15:18 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864313436729):** standby
**15:18 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864334800769):** vfd is changing as well
**15:19 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864385175529):** is it 35 now?
**15:19 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864399651599):** 35% 21hz
**15:20 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864406175649):** well.
**15:20 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864410515239):** did that from the app on my phone
**15:20 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864426894789):** like a boss
**15:20 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864434146359):** this is good stuff
**15:21 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864485941259):** is it cooling off at all in you trailer?
**15:21 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864495473849):** not much
**15:22 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864522007159):** It will be better probably if you start early in the day
**15:22 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864532651729):** ya.. i think its coming down.. just slowly
**15:23 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864581615159):** are you reading speed feedback as well?
**15:23 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864616211079):** not currently, but its easy enough to add
**15:24 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864652132289):** I setup scaled values. Just need to put them to modbus registers
**15:24 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864675118269):** the scaling is actually just div by 10
**15:24 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864684320619):** or 100
**15:27 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864879929489):**
![[F09A4SS9JBB_image_from_ios.jpg]]
**15:28 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864893907799):** I can do the speed command scaling on the pi as well
**15:28 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864900275139):** Then it will read correctly here
**15:28 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864917562249):** sweet! so in the future no scaling needed in the plc
**15:28 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754864925018369):** correct
**15:29 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754864942906399):** cool!
**15:30 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754865056581439):** Wonder if it's best to put the command and feedback in percent
**15:39 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754865572870039):** scale it before we send it to the PLC?
**15:39 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754865592788029):** so app: 0-100, pi scales it 0-6000? sends 0-6000 to the plc?
**15:40 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754865632188469):** speed command is 0-10000 (0-100%)
**15:40 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754865641312969):** oh ok
**15:41 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754865666692399):** feedback is 0-6000 from the vfd
**15:41 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754865701101129):** we could scale that to 0-100 on the app if we wanted
**15:45 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754865900946089):** yep that's the idea
**15:46 [Kevin](https://slack.com/archives/C094GTB7ACS/p1754865982646029):** come down and work in the office if you want to
**15:59 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754866793731969):** Headed down
**16:31 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754868683293149):**
[[F099DGMFBKR_iotmqttpanel-250810_163046.json]]
**17:12 [Mason Radke](https://slack.com/archives/C094GTB7ACS/p1754871155671749):**
[[F099VNYBWTW_iotmqttpanel-250810_171202.json]]