2 Instruction Descriptions
2-680
NJ-series Instructions Reference Manual (W502)
LD
OperatingEnd
Trigger
Operating
InDNetAdr
InOption
SendDat
RecvDat
RS_instance
SendCmd_instance
False
False
False
(NetNo:=0, NodeNo:=0, UnitNo:=16#0)
(isNonResp:=False, TimeOut:=0, Retry:=0)
[9(16#0)]
[10(16#0)]
BOOL
BOOL
BOOL
_sDNET_ADR
_sRESPONSE
ARRAY[0..8] OF BYTE
ARRAY[0..9] OF BYTE
RS
SendCmd
SendCmd_instance.Done
SendCmd_instance.Error
Determine if execution of the SendCmd instruction is completed.
Accept trigger.
Execute SendCmd instruction.
OperatingEnd
Operating
OperatingEnd
Trigger
_Port_isAvailable DeviceNet_OnlineSta
RS
Set Q1
Reset1
RS_instance
Operating
InDNetAdr
_NONE
SendDat[0]
UINT#9
RecvDat[0]
InOption
1 InDNetAdr.NetNo :=USINT#0;
2 InDNetAdr.NodeNo :=USINT#0;
3 InDNetAdr.UnitNo :=BYTE#16#10;
4 InOption.isNonResp:=FALSE;
5 InOption.TimeOut :=UINT#20;
6 InOption.Retry :=USINT#2;
7 SendDat[0] :=BYTE#16#28;
8 SendDat[1] :=BYTE#16#01;
9 SendDat[2] :=BYTE#16#0B;
10 SendDat[3] :=BYTE#16#0E;
11 SendDat[4] :=BYTE#16#00;
12 SendDat[5] :=BYTE#16#01;
13 SendDat[6] :=BYTE#16#00;
14 SendDat[7] :=BYTE#16#01;
15 SendDat[8] :=BYTE#16#01;
Set communications parameters.
Inline ST
// Set network address.
// Set response.
// Set command array.
Operating
_Port_isAvailable
BOOL
SendCmd
Execute Done
DstNetAdr Busy
CommPort Error
CmdDat ErrorID
CmdSize ErrorIDEx
RespDat
Option
SendCmd_instance
Processing completed
Execution condition
Processing
Destination network address
Response
Send data
Receive data
Variable Data type Initial value Comment
Internal
Variables
External
Variables
Variable Data type Comment
Network Communications Instruction Enabled Flag