114
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
SERIAL_SETUP
302
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
305
SERIAL_SETUP initialises the serial RS232 interface.
The function block does not necessarily need to be executed in order to be able to use the serial
interface. Without function block call the default settings below apply.
Using ENABLE=TRUE for one cycle, the function block sets the serial interface to the indicated
parameters. The changes made with the help of the function block are saved non-volatily.
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.
5020
NOTICE
The driver module of the serial interface can be damaged!
Disconnecting or connecting the serial interface while live can cause undefined states which damage
the driver module.
► Do not disconnect or connect the serial interface while live.
>
Parameters of the inputs
306
Parameter
Data type
Description
ENABLE
BOOL
TRUE (only for 1 cycle):
Initialise interface
FALSE:
during further processing of the program
BAUD RATE
WORD
Baud rate
permissible values → data sheet
preset value → data sheet
DATABITS
BYTE := 8
Number of data bits
allowed = 7 or 8
PARITY
BYTE := 0
Parity
allowed: 0=none, 1=even, 2=odd
STOPBITS
BYTE := 1
Number of stop bits
allowed = 1 or 2
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......