Command value for Adam-6060

600 views
Skip to first unread message

klaus

unread,
Jul 23, 2014, 6:02:04 AM7/23/14
to comman...@googlegroups.com
What is the correct command value in CF for this (ASCII):

#01Vd100100000001(cr)

It is a command to set an internal flag at Advantech Adam-6060 (Relay Module) using TCP/IP, port 502.

Thanks!
Klaus

Jarrod Bell

unread,
Jul 23, 2014, 6:43:01 AM7/23/14
to comman...@googlegroups.com
Try this:
#01Vd100100000001\x0d

Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

klaus

unread,
Jul 23, 2014, 4:06:02 PM7/23/14
to comman...@googlegroups.com
No success.
It does work with the terminal "Adam Commander" in the "Advantech Adam/Apax.NET Utility" and I receive >01(cr)
I tried it with "Hercules SETUP utility", I have sent ##01Vd100100000001<<CR> and receive #01Vd100100000001<CR>#01V0°
which means no success.

:(
Klaus

Clayton Vicente

unread,
Jul 23, 2014, 4:17:39 PM7/23/14
to CommandFusion Group
Can you send the protocol or a link ? Would be better if we now what exactly you need to send. Hex,byte,string, all of them ?
Regards
Clayton


Date: Wed, 23 Jul 2014 13:06:02 -0700
From: cz...@panascan.de
To: comman...@googlegroups.com
Subject: Re: Command value for Adam-6060

Terence

unread,
Jul 23, 2014, 9:46:22 PM7/23/14
to comman...@googlegroups.com
From http://www.bb-elec.com/Products/Manuals/ADAM-6000Series_Manual_V4_June2011.pdf (pg. 127) :

- Syntax #aaVdbbbbdddddddd(cr) # is a delimiter character.
- aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6000 module. (Always 01)
- Vd is the GCL Internal Flag command. bbbb is used to indicate which GCL internal flag(s) to set. Writing to all GCL internal flags: 0000. Writing to a single GCL internal flag: First character is 1, and 2 ~ 4 characters indicate the GCL internal flag number which can range from 0h to Fh.

- dddddddd is the hexadecimal representation of the GCL internal flag value(s). Each character represents 4 GCL internal flags’ values.
- (cr) is the terminating character, carriage return (0Dh)

Try this :
#\x01Vd1001\x00\x00\x00\x01\x0D


klaus

unread,
Jul 24, 2014, 2:18:28 PM7/24/14
to comman...@googlegroups.com
Terence, good idea - but still no success.

ASCII-protocol on page 124-129 (my command on page 127)
and page 164-168

(Modbus protocol on page 118-123)

Klaus

Terence

unread,
Jul 25, 2014, 2:22:03 AM7/25/14
to comman...@googlegroups.com
How about#01Vd1001\x00\x00\x00\x01\x0D   ?

Klaus

unread,
Jul 25, 2014, 3:53:40 AM7/25/14
to comman...@googlegroups.com
No success.
Message has been deleted
Message has been deleted

Tulio

unread,
Jul 25, 2014, 11:08:52 AM7/25/14
to comman...@googlegroups.com
Try using hercules to find the exact command you must use

In Hercules, to send a mix command with ascii and hex, replace \x to $

eg. 
power$0D in hercules
power\x0D in CF


Em sexta-feira, 25 de julho de 2014 04h53min40s UTC-3, Klaus escreveu:
No success.

Klaus

unread,
Jul 25, 2014, 11:23:09 AM7/25/14
to comman...@googlegroups.com
Now I was told that port 502 is just for TCP ASCII/Modbus, 
strings can only be sent using UDP ASCII and port 1025 (not well documented...).

Klaus

unread,
Jul 28, 2014, 1:42:43 PM7/28/14
to comman...@googlegroups.com
#01Vd100100000001\x0d is correct. Thank you all!

Klaus
Reply all
Reply to author
Forward
0 new messages