240
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Use of the serial interface
10.6.1
Function SERIAL_SETUP
Contained in the library:
ifm_CRnnnn_Vxxyyzz.LIB
Available for the following devices:
•
CabinetController: CR0301, CR0302, CR0303
•
ClassicController: CR0020, CR0032, CR0505
•
ExtendedController: CR0200, CR0232
•
PCB controller: CS0015
•
SafetyController: CR7020, CR7021, CR7032, CR7200, CR7201, CR7232, CR7505, CR7506
•
SmartController:
CR2500
•
PDM360 smart: CR1070, CR1071
Function symbol:
SERIAL_SETUP
ENABLE
BAUDRATE
DATABITS
PARITY
STOPBITS
Description
SERIAL_SETUP initialises the serial RS232 interface.
SERIAL_SETUP sets the serial interface to the indicated parameters. Using the function input
ENABLE, the function is activated for one cycle.
The SERIAL functions form the basis for the creation of an application-specific protocol for the serial
interface.
NOTE
In principle, the serial interface is not available for the user, because it is used for program download
and debugging.
The interface can be freely used if the user sets the system flag bit SERIAL_MODE to TRUE. Then
however, program download and debugging are only possible via the CAN interface.
For CRnn32: Debugging of the application software is then only possible via all 4 CAN interfaces or via
USB.
ATTENTION
The driver module of the serial interface can be damaged!
Disconnecting the serial interface while live can cause undefined states which damage the driver
module.
►
Do not disconnect the serial interface while live.