![background image](http://html1.mh-extra.com/html/pixsys/td240-series/td240-series_operation-manual_1560862079.webp)
79
After having loaded the buffer with the data to transmit, activating
the SEND function, which has parameters for the serial port and
the number of characters to transmit, will cause the data to be sent
on the serial line.
During the transmission phase, the bits SM0.6, SM0.7 or SM0.8
relative to the transmission port are set to “1”, while at the end of
the transmission they will be set to “0”. It is possible to control an
eventual reply of a connected device through the control of SM42,
SM43, and SM44, which contain the number of characters
received and saved in the reception buffer of each serial port. Any
writing on any of these special markers causes the emptying of the
buffer data in reception of the corresponding port.
Calls to the SEND function before the end of the preceding
transmission or with free-port mode disabled are ignored by the
program.
10.19 TunePOS and POS functions
The function “TunePOS” executes an auto-tuning procedure,
indispensable for extracting the data of reaction time and axis
inertia for which a positioning procedure is requested.
The function “POS” executes the positioning ON/OFF of the axis.
The functions operate on the variable area VD (double word), the
address of the beginning of the area is requested as a parameter
of the functions “TunePOS” and “POS”. The following table
indicates how the data are organized in the area of the two
functions from the address of the specified location:
Address
area VD
Contents
+0
Encoder countings
+2
Countings of positioning setpoint value
+4
Countings max absolute positioning gap
+6
Time taken to reach max speed (in tenths of seconds)
+8
Status of positioning output (0= stop, 1= forward, -
1=
backward)
+10
Countingsof forward inertia
Summary of Contents for TD240 series
Page 1: ...Manuale operatore...
Page 2: ...2...
Page 6: ...6 3 Mechanical dimensions and installation...
Page 24: ...24 7 1 Starter Kit Connection of the terminal to the PC...
Page 27: ...27 7 2 1 Creation of a new project...
Page 89: ...89 11 Notes Updates...
Page 90: ...90...
Page 91: ...91...