
4
1. Ethernet 4-25
Network Communications
Addresses
•$s514, 515
These addresses are related to macro commands [SEND], [EREAD] and [EWRITE].
$s514: Sets the executing status of the macro.
In the case of “0,” the next step of the macro is executed without waiting for the
completion of the command when a command request is give n to th e Eth erne t.
In the case of other than “0,” the wait status continues until the command
completes, and then the next step of the macro is executed.
$s515: Stores the result of macro execution. An error occurs if a value other than “0”
is stored. For more information, refer to the error codes (pa ge 4-47). However,
when $s514 is “0,” the data before the command request is stored.
•$s518
Stores the current status of the Ethernet. An error occurs if a value other than “0” is
stored. For more information, refer to the error codes (page 4-46).
•$s520 to 619
Stores the statuses of network table No. 0 to 99.
- Bit 0 (Network table use status)
[0]: Not used [1]: Used
For the current station, “0” (not used) is input.
- Bit 1 (Macro command execution status)
Stores the execution status of macro command [SEND], [EREAD] or [EWRITE].
[0]: Waiting [1]: Executing
- Bit 2 (Command execution status)
Stores the execution status of the command fr om the server or other station.
[0]: Waiting [1]: Executing (read/write command)
- Bit 3 (Macro command execution result)
Stores the execution result of macro command [SEND], [EREAD] or [EWRITE].
[0]: Normal [1]: Error
- Bits 4 to 15 (System reserved)
Not used at present. Always set “0.”
1514131211109876543210
Network table use status
Macro command execution
status
Command execution status
Command execution result
Not used