Danfoss VLT 5000 Series Manual page 165

Synchronizing and positioning option onizing and positioning option
Hide thumbs Also See for VLT 5000 Series:
Table of Contents

Advertisement

I I I I I COM_OPT
/* Program for sending and reveiving 8 bytes of data via a communication option using PPO type 2 */
/* Definition of arrays */
DIM send [4]
DIM receive [4]
/* Definition of user parameters */
LINKGPAR 133 710 "DATA WORD 1" 0 255 0
LINKGPAR 134 711 "DATA WORD 2" 0 255 0
LINKGPAR 135 712 "DATA WORD 3" 0 255 0
LINKGPAR 136 713 "DATA WORD 4" 0 255 0
/* Initialize arrays (all elements = 0) */
i = 1
WHILE (i<4) DO
receive [i] = 0
i = i+1
ENDWHILE
j = 1
WHILE (j<4) DO
send [j] = 0
j = j+1
ENDWHILE
/* Main program loop */
main:
send [1] = GET 133
send [1] = GET 134
send [1] = GET 135
send [1] = GET 136
COMOPTGET 4 receive
COMOPTSEND 4 send
/* Print data of receive array */
print "RECEIVED(4 WORDS)"," ",receive [1]," ",receive [2]," ",receive [3]," ",receive [4]
GOTO main
MG.10.J4.02 – VLT is a registered Danfoss trade mark
®
VLT
5000 SyncPos option
/* send array, element 1 = value of par. 710 */
/* send array, element 2 = value of par. 711 */
/* send array, element 3 = value of par. 712 */
/* send array, element 4 = value of par. 713 */
/* Copy 4 words from comm. option to receive array */
/* Copy 4 words from send array to communication option */
/* End of program */
165

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VLT 5000 Series and is the answer not in the manual?

Questions and answers

Table of Contents