Classicladder TCP setup ?

More
4 years 1 month ago #251684 by grzesiekzxr
Classicladder TCP setup ? was created by grzesiekzxr
 Hello Colleagues, at the beginning I want to thank you for creating a forum.
My problem is configuring the classicladder TCP
Can someone post a file .clp with settings for TCP.IP
 

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252078 by HansU
Replied by HansU on topic Classicladder TCP setup ?
Do you want to run Modbus-TCP with Classicladder?

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252082 by grzesiekzxr
Replied by grzesiekzxr on topic Classicladder TCP setup ?
Yes, I'M able to run classicladder serial,
But I would like to know how to setup tcp, IP, IP port, in config file. Clp.
Thanks

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago - 4 years 1 month ago #252094 by Aciera
Replied by Aciera on topic Classicladder TCP setup ?
Have you found the ClassicLadder documentation?
TCP/IP setup is mentioned in Section 9.2:
linuxcnc.org/docs/devel/html/ladder/classic-ladder.html#_modbus
Code:
[list] [*]If no port name for serial is set, TCP/IP mode will be used… [*]The slave address is the slave address (Modbus/RTU) or the IP address. [*]The IP address can be followed per the port number to use (xx.xx.xx.xx:pppp) else the port 9502 will be used per default. [/list]
Last edit: 4 years 1 month ago by Aciera.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252259 by grzesiekzxr
Replied by grzesiekzxr on topic Classicladder TCP setup ?
Thank you, I read the documentation and browsed the forum before I posted my request.
Communication with the servomotor works using: mb2hal, qmodbus or by checking ping.
However, I cannot communicate using classicladder TCP.
My attempts:
in the config.hal :
loadrt classicladder_rt numPhysInputs=15 numPhysOutputs=15 numS32in=10 numS32out=10 numFloatIn=10 numFloatOut=10

addf classicladder.0.refresh servo-thread

loadusr -W classicladder --modmaster --modbus_port = 192.168.33.1: 502 custom.clp
#loadusr -W classicladder --modmaster custom.clp
#loadusr -W classicladder --modmaster custom.clp
#loadusr -W classicladder --modbus_port = 192.168.33.1: 502 custom.clp

or trying to configure a connection in file.clp:
MODBUS_MASTER_SERIAL_PORT=192.168.33.1:502
#MODBUS_MASTER_TCP_PORT = 192.168.33.1: 502
I used wireshark and debug to see changes.

Despite many attempts, so far without success
Works on the latest version of LCNC 2.83
Thank you for your interest in the topic.

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252290 by grzesiekzxr
Replied by grzesiekzxr on topic Classicladder TCP setup ?
... "Classic Ladder has a Modbus/TCP server integrated. Default port is 9502. (the previous standard 502 requires that the application must be launched with root privileges)."
Wireshark detect nothing.
IS it posible that need more privileges chmod 777 ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.720 seconds
Powered by Kunena Forum