Name Data Type Initial Value Description, Parameter Values
DATA_LEN DWORD 16#00000000 The length of the data to be transmitted is speci-
fied in bytes at input DATA_LEN. The maximum
number is 84.
VAR_OUTPUT
DONE BOOL FALSE Output DONE indicates the sending of data. This
output always has to be considered together with
output ERR.
The following applies:
DONE = TRUE and ERR = FALSE:
Sending completed. A data set was sent correctly.
DONE = TRUE and ERR = TRUE:
An error occurred during sending. The error
number is indicated at output ERNO.
ERR BOOL FALSE Output ERR indicates whether an error occurred
during sending. This output always has to be con-
sidered together with output DONE. The following
applies if an error occurred during sending: DONE
= TRUE and ERR = TRUE. Output ERNO indi-
cates the error number.
ERNO WORD 16#0000 Output ERNO provides an error identifier if an
invalid value has been applied to an input or if an
error occurred during job processing. ERNO
always has to be considered together with the
outputs DONE and ERR. The output value at
ERNO is only valid if DONE = TRUE and ERR =
TRUE. The error messages encoding at output
ERNO is explained at the beginning of the func-
tion block descriptions (
Ä
AC500 User Documen-
tation).
Call in ST
PM5xxSend (EN := PM5xxSend_EN,
DATA := ADR(PM5xxSend_DATA),
DATA_LEN := PM5xxSend_DATA_LEN,
DONE => PM5xxSend_DONE,
ERR => PM5xxSend_ERR,
ERNO => PM5xxSend_ERNO);
4.6.5 DPRAM_SM5XX_SEND and DPRAM_SM5XX_REC in SysInt_AC500_V10.lib
DPRAM_SM5XX_SEND and DPRAM_SM5XX_REC POUs from SysInt_AC500_V10.lib can be used on
PM5xx Non-safety CPU to exchange data with SM560-S Safety CPU.
Configuration and programming
AC500-S Libraries > DPRAM_SM5XX_SEND and DPRAM_SM5XX_REC in SysInt_AC500_V10.lib
30.03.2017 AC500-S 259