Hey, guys. I'm a co-op/intern at a company this semester, and I'm learning how to program PLCs. I'm using RSLogix 500 and a MicroLogix 1400 PLC to communicate with a ViewMarq display. I am trying to take a string from an ST file and place it into an N file to send to the display using a MSG instruction. It has to be a MSG instruction because I am communicating with the display via Ethernet which only supports Modbus TCP.
If I do a MOV instruction with something like ST15:6.DATA[0] as my source and N16:0 as my destination, it works fine. The problem is I would have to have like 65-80 MOV instructions each time. I am trying to use JMP and LBL to make a for loop to fill in the N file, but I keep getting an "ERROR: Usage of the 'Undefined' filetype is illegal" message.
What I have is ST15:6.[N7:0] as my source and N16:[N7:1] as my destination. Is there any way to do indirect addressing at the word level with a ST file so I can place it into the N file? I also tried ST15:6.DATA[[N7:0]], but that gave me an error saying the index had to be 0-40.
Any help would be appreciated.
If I do a MOV instruction with something like ST15:6.DATA[0] as my source and N16:0 as my destination, it works fine. The problem is I would have to have like 65-80 MOV instructions each time. I am trying to use JMP and LBL to make a for loop to fill in the N file, but I keep getting an "ERROR: Usage of the 'Undefined' filetype is illegal" message.
What I have is ST15:6.[N7:0] as my source and N16:[N7:1] as my destination. Is there any way to do indirect addressing at the word level with a ST file so I can place it into the N file? I also tried ST15:6.DATA[[N7:0]], but that gave me an error saying the index had to be 0-40.
Any help would be appreciated.