Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Edison on October 14, 2008, 12:14:58 PM

Title: How to set the modbus output signal??
Post by: Edison on October 14, 2008, 12:14:58 PM
Hi,all:
   In the mach3 the modbus the input signal is set the port is 0 ,
but the output signal is mapping what??

Thanks for help!!

Edison
Title: Re: How to set the modbus output signal??
Post by: Hood on October 14, 2008, 08:20:15 PM
What are you trying to do? is it a PLC? Are you wanting to set an output from a macro or a button or?

Hood
Title: Re: How to set the modbus output signal??
Post by: Edison on October 15, 2008, 07:41:10 AM
Hi£¬Hood£º
    Now£¬I design a board like ModIO, the input signal is test ok, but I cann't understand the output signal setup.
I want set the output like the input and can from a macro.

Thanks!!

Edison
Title: Re: How to set the modbus output signal??
Post by: Hood on October 15, 2008, 08:15:05 AM
Well for me with the PLC it is as simple as

Call SetModOutPut (19,1)

That would turn on output 19

Hood
Title: Re: How to set the modbus output signal??
Post by: Edison on October 15, 2008, 08:24:26 AM
Hi£¬Hood:
   That's ok,thanks!!
   And how to output the word??

Thanks!!

Edison
Title: Re: How to set the modbus output signal??
Post by: Hood on October 15, 2008, 08:50:12 AM
heres a screenshot of the settings I have for the PLC.
Hood
Title: Re: How to set the modbus output signal??
Post by: Edison on October 15, 2008, 09:30:45 AM
Hi,Hood:
   Your ModBusSettings send what to the PLC??
   If I want to send  0x0fd to the plc, ....?

Thank
Edison
Title: Re: How to set the modbus output signal??
Post by: Hood on October 15, 2008, 05:41:12 PM
I have no idea about what is sent, the registers in the PLC start at 2048 for inputs (PLC Inputs, Mach Outputs) and thats what I have set up in the above screenset.

Hood