Navigation:  Equipments (Devices) > SCA06 > Ladder > Data Transfer >

ILOAD

Previous pageReturn to chapter overviewNext page

Block which indirectly loads the value of a variable and transfers it to Value.

 

Ladder Representation

 

ILOAD_block

 

Block Structure

 

Variable Type

Name

Data Type

Description

VAR_INPUT

EN

BOOL

Block enabling

Group#

BYTE

Group where the variable is stored

DataType#

BYTE

Data type of the selected variable

Address

DWORD UDINT DINT

Address of the global variable, as its group

VAR_OUTPUT

ENO

BOOL

End of operation

Value

As selected inDataType#

Value of the selected variable

 

Operation

 

When this block has a TRUE value in EN, it loads, in Value, the of the Address variable belonging to the Group# group, as the selected DataType#.

 

When EN has FALSE value, Value remains unchanged.

 

The ENO value forwards to the next Ladder block the EN value after the operation is completed.

 

Block Flowchart

 

ILOAD_flowchart

 

Example in Ladder

 

ILOAD_example01

 

The above example loads the value of the address 40 of group 2 (GLOBAL_SYSTEM%S), which represents the status of ESC key in UINT format for the VALUE variable. The block ends with success and ENO output is activated.

 

Example in ST

 

 The example below displays the instructions for applying the example above in the ST language.

 

 

VAR

   ADDRESS : DINT := 40;

   VALUE : UINT;

END_VAR

 

VALUE := FB_ILOAD(

   EN:=DI1,

   Group:=2,

   DataType:=6,

   Address:=ADDRESS,

   ENO=>DO1);