Herunterladen Inhalt Inhalt Diese Seite drucken

General, Data Format, Data Security, Data Storage - IFM Electronic Ecomot100 CANcom III Handbuch

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

General
After power on CANcom waits for the initialisation with the CANopen start func-
tions COP_MSTR_BOOTUP and COP_MSTR_MAIN.
CANcom then tries to log into the GSM network. The SMS function "TELEDA-
TA_SMS" monitors the modem status at an interval of some seconds.
Data format
Since only text data can be transmitted the following format has been selected to
transmit binary data:
#
pw_L
pw_H
#
Start sign
pw_L
Password Low
pw_H
Password High
adr_L
Address Low
adr_H
Address High
d0
Data byte 1
d1
Data byte 2
d2
Data byte 3
dn
Data byte n
crc_L
Checksum Low (optional)
crc_H
Checksum High (optional)
#
End sign
• All numerical values are indicated in the 2-digit Hex format.
• Byte sequence within words: first Low byte then High byte!
• The number of data bytes is limited by the max. SMS length.
• If required CRC can be used. The receiving application program determines by
means of the input parameter "WITH_CRC" on the function block "TELEDA-
TE_SMS" if the last 2 bytes are rated as CRC. The CRC contains the 2 address
bytes and all data bytes. The number of data bytes must be even (16-bit-CRC).
The CRC is formed by means of "parallel signature formation and signature
length 16". The generator polynominal is X15+X12+X5+1.
If the password and/or the CRC are not correct the received data is not stored
(see section "data security", page 58)
• The conversion of binary data into text data (SMS format) is carried out by
means of the function DATA_TO_SMS.
Example:
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
Start sign
#
Password
hex 2207
Address
hex 0000
Data bytes
hex 12, 34, 56, 78
Checksum
hex 1072
End sign
#
The 4 bytes hex 12, 34, 56 and 78 are stored in ascending order as from the flag
address %MB0.
adr_L
adr_H
d0
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
# 0 7 2 2 0 0 0 0 1 2 3 4 5 6 7 8 7 2 1 0 #
d1
d2
dn
CAN
CR310
COM
X
crc_L
crc_H
#
57
PAGE

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis