Navigation:  Equipments (Devices) > SCA06 > Ladder > Hardware >

IMMEDIATEOUTPUT

Previous pageReturn to chapter overviewNext page

Block that performs an instantaneous reading of the selected output port, without changing the value of images (GLOBAL_IO variables).

 

Ladder Representation

 

IMMEDIATEOUTPUT_block

 

Block Structure

 

Variable Type

Name

Data Type

Description

VAR_INPUT

EN

BOOL

Block enabling

Source

WORD INT UINT

Variable mapped with the values to be sent to the selected outputs

VAR_OUTPUT

ENO

BOOL

Output enabling

Destination#

BYTE

Outputs to be written (digital or analog)

 

Operation

 

When this block has a TRUE value in EN, it writes immediately in the selected output the value of Source. If selected analog output AO1, the Source value is passed on to it. If the digital outputs are selected, DO1 will receive the zero bit of Source, DO2 bit one, DO3 bit two, and so on.

 

When EN has FALSE value, Destination# remains unchanged.

 

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

 

Compatibility

 

Device

Version

PLC300

1.20 or higher

SCA06

2.00 or higher

 

Block Flowchart

 

IMMEDIATE_OUTPUT_flowchart

 

Example in Ladder

 

IMMEDIATEOUTPUT_example01

 

IMMEDIATEOUTPUT_example02

 

The above example is for immediate SOURCE written value, interpreted as a binary sequence, the digital outputs DO1 to DO9 of the PLC300 and DO1 receives the value of the least significant bit. The block ends with success, ENO output is activated. Note that the immediate writing does not prevail over direct coil DO1 or over enabling coils in DO2, DO3 and DO4.

 

Example in ST

 

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

 

 

VAR

   SOURCE : WORD := 0;

END_VAR

 

DO1 := FB_IMMEDIATEOUTPUT(

   EN:=DI1,

   Source:=SOURCE,

   Destination:=0);