Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
If bSend changes from FALSE to TRUE, the instruction sends the characters from sSendData to
the MCU port 1. The characters are copied to the array awSendBuffer. awSendBuffer[0] is
reserved for the length of the string to send.
ST
if
(DF(bSend))
sResult:=SendCharacters(1, sSendData, awSendBuffer);
end_if;
Set
If
permanently
the MCU unit does not exist in the
specified slot
for an instant
16#8000 is specified in
MEWTOCOL-COM Master/Slave mode
then
Data transfer via communication ports
739