Writing IP address to registers

Join Date
Jan 2013
Location
Bairro
Posts
20
Hi,
I’m having problems using an UDP connection, especially regarding how to put in registers Nx:4 and Nx:5 IP address to write my message (following the manual those are the registers to put IP). For example, how I put 192.168.10.27 in those registers?

Thanks for your support.
 
It would be nice if you specify exact controller that you are using and post you application.

I guess you are using sockets with MLX1400, but this is just a guess
 
Sorry, your correct!
I'm using ML1400 serie B controller. In manual says to put in registers Nx:4 and Nx:5 IP address, but i'm not managing how i can do it...

Thanks.
 
I don't have 1400 to try right now, but as far as I remember:

192.168.10.27 => hex C0A80A1B

Try both, not sure about byte order

change radix to hex and put

Nx:4 = C0A8
Nx:5 = 0A1B

or

Nx:4 = A8C0
Nx:5 = 1B0A
 
Socket TCP port write

Hi, Another doubt regarding sockets...

It's possible to read in one port and write to another port?

In attatched example i cannot write to a specific port, although i can read a specific port... using EWEB_Sockets_Test_Application i can see my write message, independently the port i'm using... what i'm doing wrong to cannot write to a specific port?

Best regards
 
I never used mlx1400 for sockets, but controllogix allows toread and write to different ports if you have two separate sockets
 
Hi,
Regarding OpenConnection socket instruction i need to specify the destination connection. As far i can understand from the manual i need to put in the send registers
IPaddr?port=xxx, for example 192.168.10.27?port=10001
I think we have to use ASCII radix in registers (thanks to Contr_Conn now i know how to write only IPs), but how to write all string? We need to change byte order? Using the below example i cannot oppen the connection:
N21:4=91
N21:5=.2
N21:6=61
N21:7=.8
N21:8=10
N21:9=.0
N21:10=27
N21:11=p?
N21:12=ro
N21:13==t
N21:14=01
N21:15=00
N21:16=1

What i'm doing wrong?
 

Similar Topics

Hi, I am designing an HMI with Workbench for a Micro1400 PLC. I have a PLC variable that manages the "states" depending on the integer value of...
Replies
1
Views
1,261
Can we write Address of Outputs in PLC memory, I am using WAGO PLC 750-881 and Codesys V2.3 software to program the PLC. Basically i need to...
Replies
3
Views
1,548
my serial connection isnt working so i want to use ethernet. However, i dont know the IP address so i cant configure the driver. help?
Replies
2
Views
1,917
Dear Expert Can we use this instruction successfully in Siemens s7-300 plc L db10.dbd0 //data from DB T PID 256 //to spare peripheral input...
Replies
4
Views
3,179
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
1
Views
77
Back
Top Bottom