Author Topic: Number being forced into DM[1036]  (Read 12986 times)

Lorne Van Dusen

  • Jr. Member
  • Posts: 93
  • I'm a old guy
    • View Profile
Number being forced into DM[1036]
« on: February 14, 2017, 09:20:25 AM »
I am using a FX2424 and cannot find out why DM[1036] always shows a value of 9080
All the DM32 addresses used only go as high as DM32[242] and my lowest standard DM's start at DM[500] so there should be no overlap.
When I view it DM[1036] has no name and when I search my program DM[1036] can't be found.
When I view it in 32 bit DM[518] it shows no name and it has the same value of 9080 and doing a search for DM32[518] shows no results.
How can I find where this value is being placed into DM[1036]  

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Number being forced into DM[1036]
« Reply #1 on: February 14, 2017, 10:29:02 AM »
Since you have also posted about the FP4030MR HMI, is it possible that the value is being written to DM[1036] from the HMI?

Or if you have another device or software transmitting data via Modbus, could that be the reason?

It is also possible that your program is looping through DM[]s with a variable index and you would not be able to directly search for DM[1036] in this case. Please check your FOR and WHILE loops that reference DM[]s in case the index could reach DM[1036].

If not, please email your program to support@triplc.com
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:Number being forced into DM[1036]
« Reply #2 on: February 14, 2017, 04:35:10 PM »
9080 sounds like the port number used in the IP address of the PLC.  This may be from some experiment that you are using with the GET_IPAddr statement that will build an array in DM that represents the IP address including the port number of 9080 in 5 ascending DM[] registers.

Gary D*ckinson

Lorne Van Dusen

  • Jr. Member
  • Posts: 93
  • I'm a old guy
    • View Profile
Re:Number being forced into DM[1036]
« Reply #3 on: February 15, 2017, 07:55:05 AM »
Gary you are a Genius
I kept looking at the 9080 and said I know that number I have used it a few times in the past.
As soon as I read your reply it struck me that yes I did leave a old piece of program that I forgot to delete.
GET_IPAddr 1032 // Get the PLC "IP" address and "Port" number
The strange thing is that there was no DM in front of the 1032 once I removed the statement I was finally able to clear the unwanted value in DM[1036]

Thanks again for you expert advice.

Regards
Lorne Van Dusen