![SEW-Eurodrive IPOS plus Скачать руководство пользователя страница 229](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042229.webp)
Manual – IPOSplus®
229
17
Standard functions
Compiler – Functions
17.3.16 _MovCommOn
The _MovCommOn command can only be used with MQx modules.
Syntax
_MovCommOn()
Description
The command starts cyclical communication, communication links set up using Mov-
CommDef are activated. As of this point, no MovCommDef command is permitted.
Equally, no MOVILINK command to address
≠
253 (internal) can be used.
Key points
None
Example
/*=============================================
IPOS Source File
===============================================*/
#include <const.h>
#include <io.h>
#pragma initials 0 127
#pragma globals 128 300
#pragma var 301 400
MOVCOM mc1; // control values for communication link to MOVIMOT
MCPDATA mcpd1; // process data exchange with MOVIMOT
MCPARADATA mcpara; // parameter data exchange with MOVIMOT (not used)
/*=============================================
Main Function (IPOS Entry Function)
===============================================*/
main()
{
// Initialization ===========================
// fill control structure for communication link to MOVIMOT
mc1.BusType = ML_BT_S1;
// communication via RS-485 to MOVIMOT
mc1.Address = 1;
// MOVIMOT address 1
mc1.Format = ML_FT_3;
// PDU type: 3 process data words cyclic
mc1.PdPointer = numof(mcpd1); // pointer to process data block
mc1.ParaPointer = numof(mcpara1); // pointer to parameter data block
_MovCommDef( mc1 );
_MovCommOn( );
while( )
{
}
}
17.3.17 _Nop
Syntax
_Nop()
Description
No operation is performed. This command can be used, for example, to achieve wait
times on the basis of the command cycle time.
Argument
The command does not have an argument.
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n