This is considered to be an advanced method, and is slightly more complex than the others. Usually there is no need for command-phase TCP programming. This example merely illustrates the capabilities of this mode -- do not feel compelled to try it, if you have no use for this feature in your actual environment.
In command-phase programming, every network communication session starts with a programming session. So, to actually get to your device and start communicating with it, you would have to send the Logout (O) command first. And to be able to send this command (and log out), you would first have to be logged in. This is accomplished using the Login (L) command .
Now, to actually test this method of programming, do the following:
|•||Open the settings for the DS you want to configure.|
|•||Make sure its IP address is valid for your network, and note it down for later.|
|•||Switch to the Connection tab.|
|•||Make sure Transport protocol is TCP and that Routing Mode is Server (Slave).|
|•||Set Data login to Enabled. Both of these settings can be seen below:|
|•||Send the first command, to login. As with all commands, you will not see what you send, but only what you receive:|
|•||Type L (capital L -- type l while pressing SHIFT)|
|•||You should get an STX (Smiley) and A. This means you are now logged on. It looks like this: .|