How to create a process value
Below is an example on how to create a
process value, Lamp1, of type OPC Value. This value should be fetched two times
each second and then be logged each 60e second. This value should also be
displayed in the live data program with a red line. The OPC Value is on an OPC
server on the same computer as the OPC Connector and is of the class
Delacroy.OPC.Test.
The process
value is on the OPC Item x.y.lamp1.
Further, we have created a table on
balthzar_logger.dbo.lamp1.
This table got the following
columns:
-
timestamp.
-
process_value.
-
quality.
-
numerical_id.
-
process_name.
The
fields not mentioned below should be left as standard value.
- Enter Lamp1 as name.
- Select process value type as OPC-Value.
- Enter an arbitrary number.
- Select the machine the value belongs to.
- Check
the Use custom subscription rate box.
- Enter
500 as Custom subscription rate.
- Check
active.
- Leave
the OPC-Server empty since this is licalhost. If the OPC-server is on another
computer enter the name/IP-address of that server.
- Enter
x.y.lamp1 as OPC-Item.
- Enter
Delacroy.OPC.Test as OPC server class.
- Check
Enable logging.
- Set
logging interval to 60.
- Enter
balthzar_logger.dbo as database.
- Enter
lamp1 as table name.
- Enter
timestamp as Field name, date.
- Enter
process_value as Fieldname, process value.
- Enter
quality as Fieldname, quality.
- Enter
numerical_id as Fieldname NumericalID.
- Enter
process_name as Fieldname, processfield.
- Check
Show in live data.
- Select
Red as Livedata color.