# Synchronisation type of H functions (P-CHAN-00027)

P-CHAN-00027 | Synchronisation type of H functions
Description | The synchronisation type of the corresponding H function is defined in the array ‘h_synch[i]’. Here, the field index ‘i’ defines the number of the H function. This value indicates the synchronisation type of the H function, i.e. when a check is made for the presence of a PLC acknowledgement. A motion is not executed, or is stopped at the latest towards the end of the block, if no acknowledgement has arrived from the PLC. The synchronisation type is defined as a string constant or a hexadecimal value.
Parameter | h_synch[i] where i = 0 999 (maximum number of H functions, application-specific)
Data type | STRING
Data range | See figure below
Dimension | ----
Default value | NOT_VALID
Remarks | H functions are consumption information and they must be fetched (read) from the PLC. This also applies to H functions of the type MOS, MEP_MOS and MET_MOS. Otherwise, this results in a blocked interface to the HLI in the CNC and as a consequence to an unexpected processing stop.

Caution:

The following applies to synchronisation types with associated time and path-related pre-output (MET_SVS, MET_MOS, MEP_SVS, MEP_MOS):

If one of these synchronisation types is later changed into one which requires no pre-output value, P-CHAN-00107 (m_pre_outp[i]) must be assigned to 0. Otherwise, a license error is generated in case of microwebs if this function is not licensed or not enabled (see P-CHAN-00600 Alternatively: P-STUP-00060) is inactive.

Example

h_synch[12] MVS_SVS 0x00000002

Note: Programming a UNS32 variable is permissible for downward compatibility reasons.

Example: m_synch[12] 0x00000002

Constant | Value | Meaning
NOT_VALID | -1 | No valid H function
NO_SYNCH | 0x00000000 | No output of H function to PLC
MOS | 0x00000001 | Output of H function to PLC without synchronisation. Fetch H function from PLC!
MVS_SVS | 0x00000002 | Output of H function to PLC before motion block, synchronisation before motion block
MVS_SNS | 0x00000004 | Output of H function to PLC before motion block, synchronisation after motion block
MNS_SNS | 0x00000008 | Output of H function to PLC after motion block, synchronisation after motion block
MNE_SNS | 0x00000020 | Output of H function to PLC after (measurement) event, synchronisation after motion block (for edge banding option only)
MVS_SLM | 0x00004000 | Late synchronisation, output of H function to PLC within the block, synchronisation during transfer to G01/G02/G03 (implicit synchronisation)
MVS_SLP | 0x00008000 | Late synchronisation, output of H function to PLC within the block, synchronisation by NC command #EXPL SYN (explicit synchronisation)
MOS_TS | 0x00040000 | Output of H function to PLC before motion block without synchronisation. CNC calculates sampling time offset for high-precision time output in the PLC. H function must be fetched from PLC!
MEP_MOS | 0x00100000 | Pre-output of H function with specified path, without synchronisation. Fetch H function from PLC!
MET_MOS | 0x00200000 | Pre-output of H function with specified time, without synchronisation. Fetch H function from PLC!
BWD_SYNCH | 0x00400000 | Synchronisation of H function during backward motion with MVS_SVS
FWD_SYNCH | 0x00800000 | Synchronisation of H function during 'Simulated forward motion' with associated synchronisation type
MEP_SVS | 0x01000000 | Output of H function with specified path, synchronisation before next block
MET_SVS | 0x02000000 | Output of H function with specified time, synchronisation before next block
FAW_SYNCH | 0x10000000 | Decoding stop (Flush and Wait): Output of H function to PLC and stop of program decoding at block end until all NC blocks in NC channel are completed. FAW_SYNCH can be set in addition to other synchronisation types. H functions with FAW_SYNCH may not be used during active tool radius compensation (TRC), polynomial contouring and HSC mode.

Application: see section Examples of synchronisation of M functions