Herunterladen Inhalt Inhalt Diese Seite drucken

IFM Electronic Ecomot100 CANcom III Handbuch Seite 59

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Function:
TELEDATA_SMS
Library:
CANCOM_a.lib
Purpose:
Initialises CANcom and enables
the transmission of SMS strings
or an SMS message.
This function block must be inte-
grated with all operating modes
(e.g. direct transmission)!
Parameters
Name
Data type
Inputs
NET_STARTED
BOOL
WITH_CRC
BOOL
PASSWORD
WORD
GSM
BOOL
FAX
BOOL
EMAIL
BOOL
RECEIVER
DWORD
TX_MESSAGE
DWORD
CLEAR_SMS
BOOL
NODE_ID
BYTE
GLOBALDATA
DWORD
Outputs
ONLINE
BOOL
TX_STATUS
BYTE
TX_CNT
WORD
RECEIVED
BOOL
RX_CNT
BYTE
RX_MESSAGE
STRING (255)
IS_DATA_SMS
BOOL
Notes
Before starting the function with ENABLE = TRUE the CAN network must be
started with the functions "COP_MSTR_MAIN" and "COP_MSTR_BOOTUP".
Description
TRUE:
CAN network was started successfully (OPERATIONAL)
TRUE:
Transmission with checksum
Password
TRUE:
SMS transmission is activated,
a rising edge is waited for
TRUE:
SMS transmission to a fax machine is activated,
a rising edge is waited for
TRUE:
SMS transmission to an e-mail address is activated,
a rising edge is waited for
tel. no., fax no. or e-mail address of the receiver as string
(allocation via ADR operator)
Transmission message as string (allocation via ADR operator)
TRUE:
Stored messages are cleared
Node ID of the CANcom radio modem
Global structure variable "CANCOM_GLOBAL_STRUCT"
(allocation via ADR operator)
TRUE:
CANcom is connected to the provider
CANcom status
0 = not working
1 = finished
2 = busy
3 = error
Number of messages transmitted
TRUE:
received new messages
Number of messages received
Received message as a string
(max. 255 characters)
TRUE:
SMS contains binary coded data
CAN
COM
TELEDATA_SMS
NET_STARTED
ONLINE
WITH_CRC
TX_STATUS
PASSWORD
TX_CNT
GSM
RECEIVED
FAX
RX_CNT
EMAIL
RX_MESSAGE
RECEIVER
IS_DATA_SMS
TX_MESSAGE
CLEAR_SMS
NODE_ID
GLOBALDATA
CR310
X
59
PAGE

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis