Method and system for changing the behavior of a connected field device
A method and a system for programming one or more behavior of a field device connected to a network comprising an input programming language to define the one or more behaviors to create an input program, transmitting over the network the input program to a translator coupled to the field device, translating the input program to generate a field program comprising a plurality of tasks and executing said field program by an executor coupled to said field device.
1. A computer-implemented method for re-programming a field device connected to a network, comprising:
receiving, by a first processor on the field device, an input program comprising a high-level description of one or more behaviors intended to be executed by the field device;
translating, by a first processor, the input program into a machine-language field program comprising a plurality of associated tasks to be scheduled and performed by the field device in accordance with the one or more behavior; and
wherein the method further comprises the steps of, before said receiving:
pre-processing, by a second processor located remotely from said field device and communicatively coupled to the network, the input program; and
transmitting, by the second processor via said network, the pre-processed input program to the field device; and
wherein said pre-processing comprises the step of:
checking the input program for compatibility between the input program and the field device.
2. The computer-implemented method of claim 1 , wherein at least one of said associated tasks relates to the operation of a sensor or an actuator comprised on the field device.
3. The computer-implemented method of claim 1 , wherein said pre-processing comprises the step of:
compressing the input program to a smaller size.
4. The computer-implemented method of claim 1 , further comprising the step of:
upon detecting an incompatibility between the input program and the field device, the second processor providing an alert.
5. The computer-implemented method of claim 1 , wherein said pre-processing comprises the step of:
verifying the input program for syntactic and/or semantic correctness.
6. The computer-implemented method of claim 1 , wherein said input program removes existing behaviors to be performed by the field device.
7. The computer-implemented method of claim 1 , wherein said executing is done according to a time based or event based defined schedule.
8. A system for re-programming a field device connected to a network, comprising:
a first processor located on said field device;
a non-transitory memory coupled to the processor, the memory storing instructions that when executed by the first processor, configured the system to:
receive an input program comprising a high-level description of one or more behaviors intended to be executed by the field device;
translate the input program into a machine-language field program comprising a plurality of associated tasks to be scheduled and performed by the field device in accordance with the one or more behaviors; and
the system further comprising a server located remotely from the field device, the server comprising a second processor communicatively coupled to the network and configured to, before said receiving:
pre-process the input program; and
transmit the pre-processed input program to the field device via the network; and
wherein said pre-processing comprises the step of:
checking the input program for compatibility between the input program and the field device.
9. The system of claim 8 , wherein at least one of said associated tasks relates to the operation of a sensor or an actuator comprised on the field device.
10. The system of claim 8 , wherein said pre-processing comprises the step of:
compressing the input program to a smaller size.
11. The system of claim 8 , wherein, upon detecting an incompatibility between the input program and the field device, the second processor providing an alert.
12. The system of claim 8 , wherein said pre-processing comprises the step of:
verifying the input program for syntactic and/or semantic correctness.
13. The system of claim 8 , wherein said input program removes existing behaviors to be performed by the field device.
14. The system of claim 8 , wherein said executing is done according to a time based or event based defined schedule.