HomeMicroSmart FC6A

A powerful micro PLC with the features of a PAC making it an ideal fit for demanding applications.

Data Registers for IP Address Not Working Messages in this topic - RSS

DaDaDadeo
DaDaDadeo
Posts: 80

7/1/2017
My current project will require the ability to configure the IP address of a remote host (in this case a printer) from the panel. The configuration option to use data registers for the IP address is not working. After many checks and re-configurations, in order for the communications to work, the remote host has to be configured as a hard coded value using only the IP Address option. Perhaps I am missing something?

0 link
Don Pham
Don Pham
Administrator
Posts: 399

7/6/2017
You should be able to configure remote host IP address with data registers. Can you attach the ladder/configuration program so I can take a look?
0 link
DaDaDadeo
DaDaDadeo
Posts: 80

7/7/2017
Attached is a program that contains the general approach to how I use the data registers for storing strings in a print buffer and sending them out through either the serial port or telnet. The device data files provide the 6 lines of strings (D10000 - D10219) and the general settings (D0 - D9) that contain the buffer information and IP address registers.

There is an option to switch from using the hard configuration remote host to using the data registers for the IP address.

The port number requires a hard coded value in the remote host settings. It is set to 49500 for testing. A printer usually uses 9100. I wish this setting could be addressed by a register.

Note: This version of the program "_3" provides a singe status bit M7997 to increment the buffer output. The client port is reset at the end of printing. There are CSV files to import into data files if necessary.

4th Edit

edited by DaDaDadeo on 7/9/2017

+1 link
Don Pham
Don Pham
Administrator
Posts: 399

7/7/2017
Thanks for the update.
0 link
DaDaDadeo
DaDaDadeo
Posts: 80

7/9/2017
It turns out that the registers do and don't work depending on which ones are used.

There seems to be a restriction to the addressing of the registers when using them for an IP address. When creating the simplified program I posted earlier, I used a low number register (D0005) at the start of the IP address. The simplified program worked. However, my main project program did not. This is because the IP addresses in that program are stored in a much higher register reference (D2015) which causes the remote host setup to reject the settings.

After a process of elimination ( hmm ), I found that any remote host using a register starting higher than D0255 will not work. Perhaps it's related to a 16 bit issue. So far, I read nothing in the help file stating this restriction.

This leaves me with the issue of having to use registers that I have already reserved for other functions. I will have to swap the batch of registers to have the memory allocated properly.
edited by DaDaDadeo on 7/9/2017
0 link
mnetros
mnetros
Posts: 1

24 days ago
I tried the program and I failed to use it successfully. Need some step-by-step guide on how to use it. Can anyone help me with it? Or maybe I will look for a local specialist using Houston zip code. I think this approach will bring more results. What do you think, guys? Should I still try to apply the program on my own? It would be very helpful if you can share your experience with fixing this problem. Thanks a lot.
edited by mnetros on 1/5/2020
0 link
a062549
a062549
Posts: 30

16 days ago
You realize this is an old post? There's an IDEC training class in February that I'm planning to attend. Maybe you can make it as I'm sure some guru level instructors and integrators will be present. Toast

quote=mnetros]I tried the program and I failed to use it successfully. Need some step-by-step guide on how to use it. Can anyone help me with it? Or maybe I will look for a local specialist using Houston zip code. I think this approach will bring more results. What do you think, guys? Should I still try to apply the program on my own? It would be very helpful if you can share your experience with fixing this problem. Thanks a lot.
edited by mnetros on 1/5/2020
0 link




Powered by Jitbit Forum 8.2.0.0 © 2006-2013 Jitbit Software