X20 system modules • X20 electronics module communication • X20CS1011
X20 system User's Manual 3.10
1467
4.18.2.8.5 Show operating state of the master
The current state of the master state machine is indicated in this register.
Data type
Value
Code
Description
1
CHECK_INT_FRAM
Init State
2
CHECK_LIN_SUPPLY
Waiting for 17 V voltage OK
3
SET_TRANSCEIVER_MODE Turn on transceiver
4
RESET_UART UART
Reset
6
INIT_LIN_SCAN
Init before bus scan
7
RUN_LIN_SCAN
Bus scan is running
8
WAIT_FOR_PUSHBUTTON Scan != Configuration, waiting for Config button
9
TIME_DELAY
Delay before bus setup
10
INIT_LIN_SETUP
Init before bus setup
11
RUN_LIN_SETUP
Bus setup is running (new configuration)
12
DP_CFG_CHECK
PLC has set "Wait for configuration"
15
SET_SLAVES_TO_OP
Sets slaves to OP mode (after successful scan or setup)
16
SET_SLAVES_TO_PREOP Sets slaves to PREOP mode (after errors have occurred, before
LIN_ERROR or INT_ERROR)
19
INIT_LIN_SCHED
Init bus scheduling
20
RUN_LIN_SCHED
Bus scheduler is running
21
LIN_ERROR_STATE
A fatal bus error has occurred (permanent)
22
INT_ERROR_STATE
A fatal internal error has occurred (permanent)
USINT
23
IDLE_STATE
Idle because there is no slave connected (permanent)
4.18.2.8.5.1 Flow chart of SmartWire master operating status
START
CHECK_INT_FRAM
CHECK
LIN SUPPLY
= OK?
SET_TRANSCEIVER_MODE
RESET_UART (10 ms delay)
READ_REVISION_COUNTER
INIT_LIN_SCAN
RUN
LIN_SCAN
scan = config
Slaves
present?
DP_CFG_CHECK
SET_SLAVES_TO_OP
INIT_LIN_SCHED
LIN
Error?
IDLE_STATE
RUN_LIN_SCHED
SET_SLAVES_TO_PREOP
LIN_ERROR_STATE
INIT_ERROR_STATE
CHECK_INT_FRAME
READ_REVISION_COUNTER
STORE_REVISION_COUNTER
RUN_LIN_SCAN (read config)
RUN_LIN_SETUP (write config)
ERROR
RUN
LIN_SETUP
config of bus
possible
?
STORE_REVISION_COUNTER
TIME_DELAY
INIT_LIN_SETUP
WAIT FOR
PUSHBUTTON
= pressed?
(0 to 16 basic slaves found)
No
No
Yes
Yes
No
No
Yes
No
Yes
No
The register receives the following value after successfully starting:
Value
Code
Description
20
RUN_LIN_SCHED
Bus scheduler is running
Summary of Contents for X20 System
Page 2: ......