Dears,
I have already integrated in an application/service (simple MES) developed in VB6 the customer request like getting in realtime what is runninng and pass all the info needed to the CRM
The new goal is to create a new order/job by sending a command to the OPC-UA machine, just to increase the interaction between CRM and the production
The syntax of the OPC UA command is as follows:
<CMD> NEWJOB | job-code-1 | job-code-2 | coil-code-1 | coil-code-2 | preset-quantity to produce | spring-file-name
On HDMI of machine will appear the new job, the joblist of the jobs ready to be used...etc etc
So i was thinking to start with following:
Dim Client As New EasyUAClient
WriteCMD = Client.WriteValueList("<CMD>NEWJOB|Code1|Code2|bundle1|bundle2|3553|D:\MCxFiles\program_to_be_sent.spr")
orI have to use a different "client.properties ?
Could you please be so kind to suggest me which kind of function I can use available from the object, to fit the goal ?
Below the detailed explanation ot technicality of the CMD
Best regards and thanks for any suggestion
Alberto
AUTOMATIC RECEIPT OF ORDER DATA
The wrapping machine is able to receive, through an appropriately coded OPC-UA message, the data relating to a new next order and to propose it, automatically, to the operator.
The syntax of the OPC UA command is as follows:
<CMD> NEWJOB | job-code-1 | job-code-2 | coil-code-1 | coil-code-2 | preset-quantity to produce | spring-file-name
The order sending command must respect the following syntactic rules:
• the parts in italics must be replaced with the appropriate values, the other strings are prefixed and must be respected.
• The separator character is the vertical bar "|" (ASCII 124).
• job-order-code-1 and job-order-code-2 are made up of any 0 to 16 characters and at least one of the 2 must be non-null, otherwise the message is discarded.
• code-hank-1 and code-hank-2 are made up of any 0 to 16 characters and can be empty.
• preset-quantity to be produced is an integer greater than zero.
• spring-file-name is the full path of the spring file and can be empty.
A queue of orders is not currently managed by the machine, in the case of sending several orders in succession, the last one will overwrite the previous ones. The overwritten orders will be visible as messages and only the last one will be proposed and will be loaded automatically.
Here are some examples of commands for sending order data via OPC UA.
Command string
Note <CMD> NEWJOB | Code1 | Code2 | bundle1 | bundle2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr All fields are specified
<CMD> NEWJOB | Code1 || bund1 | bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr
Second job code empty <CMD> NEWJOB || Code2 | bund1 | bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr First job code empty
<CMD> NEWJOB | Code1 | Code2 || bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr
First empty skein code <CMD> NEWJOB | Code1 | Code2 ||| 3553 | Hank codes and empty spring files
I have already integrated in an application/service (simple MES) developed in VB6 the customer request like getting in realtime what is runninng and pass all the info needed to the CRM
The new goal is to create a new order/job by sending a command to the OPC-UA machine, just to increase the interaction between CRM and the production
The syntax of the OPC UA command is as follows:
<CMD> NEWJOB | job-code-1 | job-code-2 | coil-code-1 | coil-code-2 | preset-quantity to produce | spring-file-name
On HDMI of machine will appear the new job, the joblist of the jobs ready to be used...etc etc
So i was thinking to start with following:
Dim Client As New EasyUAClient
WriteCMD = Client.WriteValueList("<CMD>NEWJOB|Code1|Code2|bundle1|bundle2|3553|D:\MCxFiles\program_to_be_sent.spr")
orI have to use a different "client.properties ?
Could you please be so kind to suggest me which kind of function I can use available from the object, to fit the goal ?
Below the detailed explanation ot technicality of the CMD
Best regards and thanks for any suggestion
Alberto
AUTOMATIC RECEIPT OF ORDER DATA
The wrapping machine is able to receive, through an appropriately coded OPC-UA message, the data relating to a new next order and to propose it, automatically, to the operator.
The syntax of the OPC UA command is as follows:
<CMD> NEWJOB | job-code-1 | job-code-2 | coil-code-1 | coil-code-2 | preset-quantity to produce | spring-file-name
The order sending command must respect the following syntactic rules:
• the parts in italics must be replaced with the appropriate values, the other strings are prefixed and must be respected.
• The separator character is the vertical bar "|" (ASCII 124).
• job-order-code-1 and job-order-code-2 are made up of any 0 to 16 characters and at least one of the 2 must be non-null, otherwise the message is discarded.
• code-hank-1 and code-hank-2 are made up of any 0 to 16 characters and can be empty.
• preset-quantity to be produced is an integer greater than zero.
• spring-file-name is the full path of the spring file and can be empty.
A queue of orders is not currently managed by the machine, in the case of sending several orders in succession, the last one will overwrite the previous ones. The overwritten orders will be visible as messages and only the last one will be proposed and will be loaded automatically.
Here are some examples of commands for sending order data via OPC UA.
Command string
Note <CMD> NEWJOB | Code1 | Code2 | bundle1 | bundle2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr All fields are specified
<CMD> NEWJOB | Code1 || bund1 | bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr
Second job code empty <CMD> NEWJOB || Code2 | bund1 | bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr First job code empty
<CMD> NEWJOB | Code1 | Code2 || bund2 | 3553 | D: \ MCxFiles \ program_to_be_sent.spr
First empty skein code <CMD> NEWJOB | Code1 | Code2 ||| 3553 | Hank codes and empty spring files