RCOM_INITΒΆ

../_images/be3e619de38af3690a33139000eba54e
Parameter Value
Library_File_Name RCOM_AC500_V13.lib
Firmware V1.3.1
Type Type_Function_Block_History
Group RCOM/RCOM+ communication

This Function Block is used to initialize the CM574-RCOM. It sets all necessary network parameters and starts initialization.

Once the Function Block is started, the input parameters must not be changed anymore. Due to this, the parameters should be preset by assigning constants.

A rising edge at input EN initiates the Function Block. The signal TRUE must be applied until the Function Block is processed completely.

If DONE = TRUE and ERR = FALSE, the initialization process was successful. If DONE = TRUE and ERR = TRUE, an error occurred and the error number is indicated at output ERNO.

After initialization, the outputs ERR, ERNO, NUM_CYCLES, NEW_TIME, HOUR_ACT, MIN_ACT, SEC_ACT and NUM_EVENTS are updated with each PLC cycle as long as EN = TRUE. This way, the PLC permanently receives the cycle counter value and error messages from the CM574-RCOM. Therefore, input EN should constantly remain TRUE, except when the Communication Module has to be reinitialized with new parameters.

A falling edge at input EN resets the outputs ERR and ERNO.

Output NUM_CYCLES indicates the current cycle counter value of the CM574-RCOM. The outputs NEW_TIME, HOUR_ACT, MIN_ACT and SEC_ACT indicate the current RCOM system time which can also be used in the PLC program. Time starts at switching on with 00:00.00. If a ‘set clock’ command is received, the time is set to the new value and output NEW_TIME is set for approx. 5 seconds (e.g. for setting a real time clock).

For RCOM slaves, output NUM_EVENTS indicates the number of events stored in the event queue. For the RCOM master, NUM_EVENTS is always zero.