The Method SendCommand sends a command to change the state of the machine module state machine remotely.

Signature

SendCommand (

[in]CommandEnumeration Command

[out]MethodExecutionFeedbackType ExecutionFeedback

);

Argument

Description

Command

The command to be sent to the machine module.

ExecutionFeedback

The extended feedback returning a detailed message in case of execution failure.

The Enumeration Data Type CommandEnumeration is defined in Table 11 according to the PackML definitions.

Table 11 – CommandEnumeration Definition

EnumString

Value

Description

Abort

0

Command to transition the state of the machine module to Aborted.

Start

1

Command to transition the state of the machine module to Execute.

Stop

2

Command to transition the state of the machine module to Stopped.

Reset

3

Command to transition the state of the machine module to Idle.

Hold

4

Command to transition the state to machine module to Held (or Idle when only the minimum set of states required is implemented).

Un-Hold

5

Command to transition the state to Execute.

Clear

6

Command to transition the state to Idle

The underlying system will execute commands provided with the SendCommand Method when the Command Argument equals “Abort”, “Stop”, “Hold”.

The underlying system will execute commands provided with the SendCommand Method when the Command Argument equals “Start”, “Reset”, Un-Hold”, “Clear” and the ControlMode equals “REMOTE SERVICE”.

The underlying system will execute local commands regardless of the value of ControlMode.

The underlying system shall comply with harmonised norms EN415-10:2011 (Safety of packaging machines).

The Structure Data Type MethodExecutionFeedbackType is defined in Table 12 and will be extensively used for method calls in the present document. The Structure DataType MessageType is defined in Table 13.

Table 12 – MethodExecutionFeedbackType Definition

Name

Type

Description

MethodExecutionFeedbackType

Structure

The exended feedback returning a detailed message in case of failure.

Success

Boolean

Returns True in case of successful execution. In case of success.

Message

Array of [MessageType]

Array of detailed messages describing the reason of the unsuccesful execution or notice for the user.

When a SendCommand Method is executed by the underlying system, the Message in MethodExecutionFeedback is suitably displayed on the machine HMI to inform the machine user, e.g. “A remote Stop command was executed. Requested by MES Client”.

Table 13 – MessageType Definition

Name

Type

Description

MessageType

Structure

ID

String

Unique identifier for the message.

LocalText

LocalizedText

Plain English message.

Method Result Codes

The following results codes are returned without any user application development.

Please report errors or issues with the site to webmaster.

Copyright © 2024 - OPC Foundation

ResultCode

Description

BadNodeIdUnknown

See table 173 in OPC 10000-4 for the description of these result codes.

BadTypeMismatch

BadOutOfRange

BadNotWritable

BadNotFound