Herunterladen Inhalt Inhalt Diese Seite drucken

IFM Electronic Ecomot100 CANcom III Handbuch Seite 60

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

CAN
CR310
COM
X
Function:
TELEDATA_DATA_TO_SMS
Library:
CANCOM_a.lib
Purpose:
Converts binary data
for the CANcom radio modem
to a SMS string (text data)
Parameters
Name
Data type
Inputs
ENABLE
BOOL
SRC
DWORD
LEN
BYTE
DST
WORD
PASSWORD
WORD
WITH_CRC
BOOL
Outputs
SMS
STRING (255)
Notes
This function is needed if binary data is to be transmitted in a SMS message.
Since a SMS message may only contain text data the binary data must be con-
verted with this function.
In the receiving controller the data is stored in a predefined flag area. The user
can determine the start address via "DST". The start address results from "DST" x
256.
The converted SMS string can be assigned to the function input "TX_MESSAGE"
of the function "TELEDATA_SMS.
To reduce the cycle time the ENABLE input should be reset again after a success-
ful conversion.
If not described otherwise, a FALSE signal with boolean data types is always the negation of the
described TRUE signal.
60
PAGE
Description
TRUE:
Conversion is to be carried out
Address of the source data (e.g. ARRAY OF BYTES)
Number of bytes
Start address of the converted data in the target controller
(e.g. 0 = %MB0)
Password
TRUE:
Conversion with CRC check
Data in SMS format
TELEDATA_DATA_TO_SMS
ENABLE
SRC
LEN
DST
PASSWORD
WITH_CRC
SMS

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis