[etherlab-users] Download negative SDO values with EtherLab command line tool

Florian Pose fp at igh.de
Mon Aug 11 13:14:42 CEST 2014


Hello,

On Tue, Aug 05, 2014 at 01:37:28PM +0000, Michael Wenz wrote:
> and I would like to download negative floating point values with the EtherLab
> command line tool to a slave:
> 
> e.g. ./ethercat download -p0 0x2001 0x9 -10.3
> 
> It is no problem to download positive values, but negative values cannot be
> downloaded with the above call.

if the argument begins with a hyphen, it is interpreted as option. Try
either

ethercat download -p0 0x2001 0x9 '-10.3'

or

ethercat download -p0 0x2001 0x9 -- -10.3

The -- tells the option parser to treat all following tokens as
arguments.

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the Etherlab-users mailing list