Operating phases
(Original Document)
At a Glance
Several operating phases exist for the TBX SAP 10 module. These different phases use certain language objects.
Table
The following table shows the different operating phases:
Phase
Description
1
Initialization of the PLC:
  • The TBX SAP 10 module must be in configuration mode (%I\2.e\0.0.0.0 = 0,
  • Initialization of the TBX SAP 10 module with the configuration values,
  • The AS-i outputs are set to 0.
2
Access to AS-i slaves:
  • The PLC can access all AS-i slaves.
3
Switching to protected mode:
Switching from configuration mode to protected mode triggers re‐initialization of the TBX SAP 10 module, which involves:
  • Change in the word %MW\2.e\0.0.0.2,
  • Setting the configuration fault bit (%MW\2.e\0.0.0.2.8) to 1,
  • Signaling of an external fault by the processor,
  • The input validation word is equal to 1.
When the reinitialization of the TBX SAP 10 module has been completed, the configuration fault bit (%MW\2.e\0.0.0.2.8) switches to 0 and the external fault disappears.
Reinitialization of the module is complete when bit 0 of the input validation word is equal to 0: the TBX SAP 10 is now ready to operate.
If the module is in protected mode, one of the following elements triggers reconfiguration of the module:
  • Switching to STOP-RUN,
  • Powering-up the PLC;
  • Disconnection of the Fipio connection,
  • Module power supply fault.
4
Switching to diagnostic mode:
The state of the AS-i bus can be displayed in diagnostic mode by switching the value of the word %MW\2.e\0.0.0.4 from 1 to 3 or by clicking the AS-I Bus Diag. button in the debug screen.
5
Quitting diagnostic mode:
To quit diagnostic mode, simply switch the value of the word %MW\2.e\0.0.0.4 from 3 to 1.
Precautions
NOTE: In phase 3, you cannot access slave inputs-outputs as long as reinitialization of the module has not been completed during the transition from configuration to protected mode. The application must acknowledge this transition phase by monitoring the input validity word.
In diagnostic mode of phase 4, input image words send back information on the state of the AS-i bus (lists of detected, programmed and activated slaves) and not on the inputs. As the PLC is in RUN, the application will have to acknowledge this change in mode, in order not to interpret the state of the AS-i bus instead of the inputs, as the outputs are still active in this operating mode.