Strings values in RSVIew with SLC500

lmarinesm

Member
Join Date
Feb 2006
Location
Mty
Posts
3
masters:

I am doing a RSview Application to be connected to a SLC500 5/05. I'm gonna read and write

Strings values on the RSView and the SLC500. So I created some TAGS linked to the ST files.

Also I'm connecting a barcode reader directly in COM 1 serial port of the PC, and with the

VBA I'm monitoring PLC discrete inputs to trigger the barcode reader and get the serial

data. That is working sweet, but when I need to write the barcode (alphanumeric) value to a

ST file in the PLC (ST10:0), the PLC is not taking it. Even, I'm getting string data from

others PLC ST files and place 'em into the RSview screen to display the values without any

problem.

Here 's the weird thing:

When I try to write to ST10:0 I do not have any luck, but when I try to write to ST10:1 or

ST10:2 the PLC catches and keeps the data. But in the ST10:3, 4, 5..20 is not. Even, If i

try to write to other ST file (example STXX:1 or 2) the PLC do not get'em.

I'm gonna appreciate your valuable help.

Regards.
 
Not sure if this helps or not but on a PaneView to read a string, you use the format ST10:0.1. Some of my VB programs also use the same format. Try it and let me know. If not I will try to hook up a 505 and test your problem.
 
Thanks Mark
I tried to do what you told me, but the RSView send me the message "Error writing tag: A string Tag Address cannot contain bit offset".
I forgot to tell you that when I run my VBA code to get the data from de COM Port and try to write it to the PLC Register, in that register just appears the string "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
Every time I try to write the PLC register, this message appears.\Thanks again.
Polo
 
I will try to hookup my 505 and RSView tommorow.

Questions:
Can you display the incoming ascii string to the RSView?

It may be that the RS505 string is looking for a carriage return but I am not sure. The hex code for it is \OD.

Have you testing writing over regular strings to the 500?

If you find anything in the mean time, let me know.
 
Hi Mark
I already catched the error.
The casue was that in the RSView32 I did not change the Lenght of the string, I leaved that in 255 but the PLC was not getting that. I changed in my RSView Tags the Lenghts from 255 to 30 and everything runs sweet. Thanks a lot for your valuable help.

Polo
 

Similar Topics

Hey all, was wondering if it was possible to shift values in an array of strings? I have a database that I am loading up with "Users" in the...
Replies
2
Views
301
hi All I am completely green in Mitsubishi PLC (i used to program siemens) but need kepware to connect to FX3U pls with ENET adp module. Could...
Replies
31
Views
7,104
Hi, I have a list selector which I want to display the recipe found inside a plc-5. The recipe is store in an ascii table with each character...
Replies
4
Views
1,414
I'm fairly new to View Studio SE. I'm trying to do a simple visibility animation, but I would like to do so with a string tag. The tag is one...
Replies
0
Views
1,210
For those of you that like living on the bleeding edge of development, you can do this without the need to resort to In/Outs and dummy references...
Replies
51
Views
25,967
Back
Top Bottom