String example ???

macs_plc

Member
Join Date
Jan 2008
Location
Nagercoil
Posts
120
how to input a string...
in FC4 -- delete string...
i have declared st---string[9]

when i include this fc4 blovk ob1..
its asking for expected data type -- IN : string...
what to enter in that ??? (like mw,md, or ?????)

led123.JPG


What iam missing ???
 
There is a big clue on the screen shot you have posted:

Expected Data type: IN: STRING

You have to declare a variable to be of type string to be able to pass it as a parameter of type string.

Here's an example using a DB containing a string variable:

string009.JPG
 
You cannot monitor string variables as strings, you have to monitor them as a collection of bytes and display them in character format.
vat1001.JPG
 
nice one.....
one more thing is it possible to view date_and_time (dt) in "VAT" (both date and time) in same time...i tried but i can only view date or time at the same time
 

Similar Topics

I am creating a global object in FTView SE 13. I want to have a string read from the PLC and display (in this case the tagname). So lets say...
Replies
4
Views
148
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
421
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
124
As the title says, I'm using CCW with a PV800 (and Micro850). I've made a scheduler in which a user can choose a month, day (1-31), hour (0-23)...
Replies
15
Views
498
Hello, So i managed to read the string coming from control logix and put a string display in PanelView 800. Now I am struggling to do the other...
Replies
1
Views
135
Back
Top Bottom