UD70
Issue code: 70nu2
Reference
7-19
Note
Do not over-use the
instruction. It is better to use the
Watch window in the Toolkit in order to monitor
variables.
The
instruction works in both normal-terminal and
dumb-terminal modes. In normal-terminal mode, the
DPL Toolkit must be used to monitor the print output.
The settings of the RS485 port are fixed at 19200 baud, 8
data bits, 1 stop bit, no parity.
PUTCHAR
Syntax
result% = PUTCHAR (character%)
This is a
RS485
port function that writes a character to the
RS485
communications port.
If the character could not be written (eg. if the
RS485
port buffer is full), the
function returns 0
0, otherwise it returns 11.
PUTKEY
Syntax
result% = PUTKEY (character%)
This is a
RS232
port function that writes a character to the
RS232
communications port when operating in dumb-terminal mode only. If the
function fails, it returns 0
0, otherwise it returns 11.
Example
r% = PUTKEY(65) // output 'A' to RS232 port
See also
instruction.
REINIT
Syntax
REINIT
Set up parameters are read by the
UD70
only at the moment
AC
power is
applied to the Drive or the
UD70
is reset. If changes are made to the set-up
parameters by a DPL program, the
REINIT
instruction can be used to force
the
UD70
to re-read them so that changes can take effect.
This instruction will not cause a reset. The program execution continues
from the next instruction as normal.
Example
#17.11 = 25 //Change CLOCK task timebase to 25ms
reinit //reinitializes the UD70to make change take effect
NOTE
REINIT does not read #17.12, POSITION LOOP ENABLE. To
enable or disable the position loop while the Drive is
running, use _Q20%.31 (see Chapter 8).
Summary of Contents for UD70
Page 6: ......
Page 14: ...UD70 Issue code 70nu2 2 6 Installation...
Page 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Page 98: ...UD70 Issue code 70nu2 7 22 Reference...