Machsupport Forum

Mach Discussion => Brains Development => Topic started by: Brsommers on September 16, 2012, 04:43:22 PM

Title: Brains Terminator "SendString" Functionality
Post by: Brsommers on September 16, 2012, 04:43:22 PM
Trying to write a Brain that will send an analog value into a register of a PLC.  The operand terminator "SendString" seems like the perfect solution.  I am using serial ModBus, not plug-in enabled.  I type in a binary word or a hex word, etc (made many different attempts) in the 80 character max box provided, & select Register Address 64, which I have mapped to a valid register in the PLC.  I select the "0-128 serial" option and hit OK.  The Brain is functioning and lights up active in the Brain Viewer, but my PLC register just stays at 0000.

Wondering if anyone has experience with this Brain terminator?
Title: Re: Brains Terminator "SendString" Functionality
Post by: poppabear on October 08, 2012, 07:49:28 AM
write out your analog value as a decimal equivalent of it max resolution (limited to 16 bits), mapped to your PLCs 16 bit word that represents that value.
when mapping in M3's modbus, you will need to convert your plc's address (octal or hex depending on brand), to decimal equivalent.

ps.  I STRONGLY advise that you use the Serial Enabled Modbus, cause you can use the different configurations to write to different block addresses if you want.

scott