There are two ways of doing this:Ģ) Data definition direct in the PmaOpcDaClientGroup object: On the " Data" tab can be defined variables, which are configured similarly as for example in the PmaData object. If you don't want to read-write data automatically, then it can be solved in the script by the PmaOpcDaClientGroup.Read- PmaOpcDaClientGroup.Write method.įurther it is necessary to define, which data are needed to be transferred. You can enter there if the data group has to be read or written automatically. These objects represent groups of the data that we want to transfer. It is necessary to insert required number of PmaOpcDaClientGroup objects into the PmaOpcDaClient object. In this object the OPC server is selected (if the OPC is correctly installed, then it appears in the menu). In the PROMOTIC application that wants to get (set) the data from the PLC device, it is necessary to create the PmaOpcDaClient object. In this case the PROMOTIC application is the other application. The OPC server can, for example, communicate with PLC devices via the computer's serial port and at the same time it can offer data (that are get from the PLC device) over the OPC interface to other Windows OS applications. The OPC server is the Windows OS application that runs either as a stand-alone program or it can be for example a Dll library. Such company is often the producer of the PLC device. You can get the OPC server from companies that produce the software. The principle of the data transfer over the OPC DA:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |