Hello
Guest
it is
April 18, 2025, 02:24:50 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
VB and the development of wizards
/
please help for modbus in macro
« previous
next »
Print
Pages:
1
2
3
»
Go Down
Author
Topic: please help for modbus in macro (Read 7398 times)
0 Members and 1 Guest are viewing this topic.
mjzrpr
38
please help for modbus in macro
«
on:
March 10, 2025, 03:55:23 PM »
hi
how to use write button in macro?
i can send hex value with this screen. but i can not send value in macro. please help me.
- Attachments and other options
Logged
mjzrpr
38
Re: please help for modbus in macro
«
Reply #1 on:
March 10, 2025, 04:00:09 PM »
also by modbus poll software its works fine.
Logged
Peter Homann
516
Re: please help for modbus in macro
«
Reply #2 on:
March 10, 2025, 06:07:29 PM »
Hi,
Have a look at this article I wrote.
https://www.homanndesigns.com/pdfs/Using_Modbus_with_Mach3.pdf
Cheers
Peter.
Logged
----------------------------------------------------
Homann Designs
http://www.homanndesigns.com
email: peter at homanndesigns.com
mjzrpr
38
Re: please help for modbus in macro
«
Reply #3 on:
March 11, 2025, 02:35:17 AM »
hello peter
I hope you well.
thanks for help.
I do your guidance pdf.
when test window is same attached picture the write button work fine. but its dont work.
the io bord have 8 out put. get a integer value from 1 to 256. value 4 means 3th output. value 5 means output1+output3.
Logged
mjzrpr
38
Re: please help for modbus in macro
«
Reply #4 on:
March 11, 2025, 02:37:16 AM »
dear mr peter
why we can not use a simple code in macro such as: sendmodbus(coil,adress, . ., value)
whit out brain.
Logged
mjzrpr
38
Re: please help for modbus in macro
«
Reply #5 on:
March 11, 2025, 02:50:51 AM »
I want just send integer value 0 to 255 can you tell me whats is correct for this picture (modbus configuration window)?
the io bord work fine with test window (modbus serial control manitor window)
Logged
mjzrpr
38
Re: please help for modbus in macro
«
Reply #6 on:
March 11, 2025, 02:53:51 AM »
I want use this io bord
Logged
mjzrpr
38
Re: please help for modbus in macro
«
Reply #7 on:
March 11, 2025, 03:13:30 AM »
when I use sendserial("test") in macro. mach3 can send data to serial port. but it can just send string not hex.
if I can send hex (01 06 00 01 00 04 D9 C9) its means value 4 in modbus and the output 3 is actived.
can you help me to send hex to serial port?
Logged
Graham Waterworth
2,777
Yorkshire Dales, England
Re: please help for modbus in macro
«
Reply #8 on:
March 12, 2025, 12:56:00 PM »
Have you tried it this way :-
sendserial("test" & Chr(D9))
Logged
Without engineers the world stops
mjzrpr
38
Re: please help for modbus in macro
«
Reply #9 on:
March 13, 2025, 07:53:21 AM »
dear Graham Waterworth
thanks for comment. chr(D9) do not add any think to serial port .
Logged
Print
Pages:
1
2
3
»
Go Up
« previous
next »