ELC_MEMORY_WRITE_BLOCK

Write data block to ELC memory

Write data to the ELC memory of the Eco logic PLC.

Input

s1_ElcStart (WORD, INT, UINT)

Starting 16-bit address of the ELC memory area.

s2_ElcEnd (WORD, INT, UINT)

Ending 16-bit address of the ELC memory area.

s3_Start (WORD, INT, UINT)

Starting 16-bit address of the data to be written to the ELC memory area.

Example

POU header

All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.

		VAR
		awSystemMonitorData: ARRAY [0..7] OF WORD:=[8(0)];
		bWrite: BOOL:=FALSE;
		@'': @'';
	END_VAR

LD body

When the variable bWrite is set to TRUE, the function is carried out.

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 6 ;
        NETWORK_BODY
B(B_CONTACT,,bWrite,5,1,7,3,);
B(B_VARIN,,16#18,24,2,26,4,);
B(B_VARIN,,16#1F,24,3,26,5,);
B(B_VARIN,,awSystemMonitorData,17,4,19,6,);
B(B_F,Adr_Of_Var_I!,,19,4,26,6,,?D?C);
B(B_F,ELC_MEMORY_WRITE_BLOCK!,,26,0,41,6,,?DEN?Ds1_ElcStart?Ds2_ElcEnd?Ds3_Start?AENO);
L(1,2,5,2);
L(7,2,26,2);
L(1,0,1,6);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

IF bWrite THEN
	    ELC_MEMORY_WRITE_BLOCK(s1_ElcStart := 16#18, s2_ElcEnd := 16#1F, s3_Start := Adr_Of_Var(awSystemMonitorData));
END_IF;

Modified on: 2019-08-23Feedback on this pagePanasonic hotline