6.5
Telnet Function
This function executes the Shell command with a Telnet tool in a personal computer without using CW Workbench for a TCP/
IP network. This allows simple remote debugging (such as task information display and memory dumping) of a C Controller
module.
Using Telnet function
For using the Telnet function, the Telnet server needs to be set.
Page 124 Telnet Server Settings
Remote debugging with serial communication
Remote debugging using serial communication can be performed same as Telnet connection.
The standard I/O destination can be switched to the serial communication side by executing the following commands from
Telnet Shell or with STARTUP.CMD.
fd = open("/tyCo/0",2,0)
ioctl(fd,4,115200)
ioctl(fd,3,0x7F)
ioGlobalStdSet(0,fd)
ioGlobalStdSet(1,fd)
ioGlobalStdSet(2,fd)
Precautions
■Available Shell commands
Shell commands of CW Workbench can be used. For details on the Shell commands, refer to the manual of VxWorks.
■Number of connections
The same C Controller module cannot be connected by using multiple Telnet tools. Connect a Telnet tool to a C Controller
module on a 1:1 basis. When connecting another Telnet tool, make sure to close (disconnect) the Telnet tool being connected.
■Shell command
A setting shell command entered from the Telnet tool operates on a task of priority 1.
Note that the following, when executing the command. System errors/stop (such as watchdog timer error) may occur in a C
Controller module.
• Make sure to check the command specifications before executing commands which occupy the CPU processing.
• For rebooting VxWorks, reset the C Controller module, or turn the power OFF and ON. Do not reboot VxWorks by
executing the command (reboot) of VxWorks or pressing + .
• Before executing a command in which arguments are included, make sure to check the command specifications/argument
specifications. (When executed without specifying those arguments, with the result that 0 is specified to an argument.) Do
not execute the close command with no argument specified. By doing so, a resource that is reserved in the VxWorks
system will be closed. When a command that shows the status of the module, such as the show command, is executed, the
module will be in the interrupt-disabled state for a long period of time, and any processing called from an interrupt routine is
not executed. As a result, an interrupt which occurs at the fixed interval may be delayed.
■Message display on Shell
A message issued by VxWorks during Telnet connection may be displayed on Shell. For the message of VxWorks, refer to the
manual and help of VxWorks.
6 Ethernet COMMUNICATION FUNCTIONS
6.5 Telnet Function
6
115