Mitsubishi problem

cmulder

Member
Join Date
Nov 2002
Posts
14
I am using a Mitsubishi A2AS-S1 CPU. I want to set some markers in the internal buffer memory of an ethernet module. To do so I am using the TOP_M function. I use the following variables:
s = ConnectionNo (Type: WORD, value: 16#8003)
n1 = HeadAddress (Type: WORD, value: 8)
n2 = 33
n3 = 1

When I compile my project I get an error saying: "Illegal device used or symbol not valid : TOP W235 H21 W237 H1"

However, when I change input n1 of the TOP_M function from "HeadAddress" to "8" it compiles without a problem.

Can anybody tell me the cause of this strange error, and if so, what can I do to overcome it.

Thanks in advance
Caspar
 
cmulder,


n1 n2 (S) n3
----[TOP W235 H21 W237 H1]----



The n1 is where your ethernet module is located or what slot on the rack is it plugged into. This has to be represented as a numerical value like H8 or K8. If your ethernet module is plugged into I/O slot 2 the n1 on your buffer memory write function would be H2 or K2 not a link register as you have it. Your (S) is where the data is located thats going to be written. The buffer memory itself is nothing more then a place for other I/O units or other modules to get together to exchange data.
Tim
 
Second try,.....

cmulder,


n1 n2 (S) n3
----[TOP W235 H21 W237 H1]----


The n1 is where your ethernet module is located or what slot on the rack is it plugged into. This has to be represented as a numerical value like H8 or K8. If your ethernet module is plugged into I/O slot 2 the n1 on your buffer memory write function would be H2 or K2 not a link register as you have it. Your (S) is where the data is located thats going to be written. The buffer memory itself is nothing more then a place for other I/O units or other modules to get together to exchange data.
Tim
 
Tim,

Thanks for your reply. I think you are right. I have to use a value like K8. Using a variable just doesn't work. I have noticed that with a QnA-series however it does work.

I'm a bit disappointed now because I wanted to write a library function for Ethernet-communication. However for this I would have needed to enter the headaddress for writing to the buffermemory. I guess I have to think of another way...

Caspar
 
You should create a function block with input parameter Address as integer. Inside the function block you can use TO instruction with n1 parameterised as Address. It will work. But in a program it does not work because the CPU does not allow a variable as the first parameter for the TO instruction. In a function block it is different.
 

Similar Topics

Hello I am writing to request assistance with obtaining a specific GSD file for our Mitsubishi inverter type A800-E, which is connected to our...
Replies
10
Views
265
Hi, I have a Mitsubishi FX5U PLC where I cannot established communication via ethernet port of my computer. Search all videos and follow all the...
Replies
3
Views
1,189
Some time ago, I looked at a form of indirect addressing on Q series PLC's, the normal way is to use the "Z" registers as an indirect pointer, so...
Replies
9
Views
1,963
I have gotten help with some issues in the past on this forum, and I'm hoping someone can help me again. My company is an OEM that used the...
Replies
1
Views
949
Dear All, currently i have a problems with my mitsubishi PLC. i'm using A0J2 (old PLC). when the input is triggered, the output remain same...
Replies
6
Views
1,902
Back
Top Bottom