Get Data From Database Ms.Access Using Vijeo Citect Cicode Editor

Hi guys, I want to get data from Microsoft access database using vijeo citect cicode editor..
however, I don't understand what the coding in cicode editor.
I have 1 table in ms.access and I give name for this table is Production
in the table, I have 2 column.. Time and Quantity.

on vijeo citect, I create a local variable tag..
Name for local variable tag is Quantity and type data is string.

I use the type data string because ms.access database only accept data with type data string.

to sending data to ms.access database I use coding like this

"INSERT IGNORE INTO Production" + "(Time, Quantity) VALUES ('" + TIME(1) + "' , '" + Quantity + "')";

the data can send to ms.access database.

now from access database I have data like this.

Time Quantity
11:10:00 900
11:10:02 850
11:10:04 800
11:10:06 750

the problem is I can't get the data from ms.access database to Vijeo Citect, I want to calculation data from column Quantity. in column Time, only data 11:10:00 and 11:10:02.

any suggestions can help me to solve this problem?
thank you before.
 

Similar Topics

please tell me how to create database in SQL and access historical data in RS View 32. as i know first i have to create ODBC conection for the SQL...
0
Replies
2,357
Views
You help me with instructions. I'm not into sports in particular Ifix intelution 3.5 like this: I do not know how to write code to automatically...
0
Replies
2,922
Views
Good Afternoon All. We have a 5 generator power station at site, with each generator controlled by an Allen Bradley SLC 5/02 PLC. These all...
5
Replies
20,922
Views
Hello guys this is the first time that I'm trying to do this on my own, basically I'm trying to retrieve the production data from a Mitsubishi...
5
Replies
1,935
Views
Hello. A semiconductor production machinery maker has inquired about a Windows application that be able to cyclically read data from an OPCUA...
9
Replies
3,244
Views
Top