Set_Attribute_All: Set All Attributes of an Instance or Class

Function Block Description

This function block sets all attributes of an instance or classes.

To use the function block, you must add a at least one EtherNet/IP device under the protocol manager. Refer to Add a Device.

Graphical Representation

G-SE-0047922.1.gif-high.gif

 

 

Inputs

This table describes the input variable:

Input

Data type

Comment

i_xExecute

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

A rising edge of the input Execute starts the function block. The function block continues execution and the output Busy is set to TRUE.

oFALSE: If Enable is set to FALSE, the outputs Done, Error, or CommandAborted are set to TRUE for one cycle.

oTRUE: If Enable is set to FALSE, the outputs Done, Error, or CommandAborted remain set to TRUE.

i_xAbort

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution has not been aborted.

oTRUE: Execution has been aborted by another function block.

i_xMsgType

BOOL

oFALSE: UCCM

oTRUE: Connected (Class 3) message

i_adTargetIP

TCP_ADDR

IP address of target.

i_dwClass

DWORD

Target class.

Refer to How To Find Object Information in Device Documentation. 

It must be 0xFFFFFFFF if the class is not part of the request.

i_dwInstance

DWORD

Target instance.

Refer to How To Find Object Information in Device Documentation. 

It can be 0 if the target is class instance. It must be 0xFFFFFFFF if the instance is not part of the request.

i_abyRequestData

ARRAY OF BYTE

0…MAX_EIP_REQUEST_DATA_SIZE

Data must be sent to the target. If not used, wDataSize must be 0 1.

q_wDataSize

WORD

The actual size of the abyRequestData 1.

1   The input data buffer must be formatted as well. Refer to Set_Attribute_All request data in the ODVA EtherNet/IP specification volume 1.

Outputs

This table describes the output variable:

Output

Data type

Comment

q_xDone

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution has not been started, or an error has been detected.

oTRUE: Execution terminated without an error detected.

q_xBusy

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Function block is not being executed.

oTRUE: Function block is being executed.

q_xAborted

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution has not been aborted.

oTRUE: Execution has been aborted by Abort input.

q_xError

BOOL

Value range: FALSE, TRUE.

Default value: FALSE.

oFALSE: Execution of the function block is running, no error has been detected.

oTRUE: An error has been detected in the execution of the function block.

q_byCommError

BYTE

Gives information about the detected error.

q_dwOperError

DWORD

Gives information about the detected error.