Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Change IP address.
SettingTrigger
_CBU_CPU
UINT#0
NewIPAddress
NewSubnetMask
NewDefaultGateway
ST
Variable
ChangeTrigger
SettingTrigger
Done0
Error0
Busy0
ErrorID0
NewIPAddress
NewSubnetMask
NewDefaultGateway
RS_instance
ChangeIPAdr
_instance
//Check execution conditions.
IF((ChangeTrigger=TRUE)AND(Busy0=FALSE))THEN
SettingTrigger:= TRUE;
END_IF;
IF((Done0=TRUE)OR(Error0=TRUE))THEN
SettingTrigger:= FALSE;
END_IF;
//Set IP address.
IF(SettingTrigger=TRUE)THEN
NewIPAddress[0]
NewIPAddress[1]
NewIPAddress[2]
NewIPAddress[3]
NewSubnetMask[0]
NewSubnetMask[1]
NewSubnetMask[2]
NewSubnetMask[3]
NewDefaultGateway[0]:= 16#00;
NewDefaultGateway[1]:= 16#00;
NewDefaultGateway[2]:= 16#00;
NewDefaultGateway[3]:= 16#00;
END_IF;
//Change IP address.
ChangeIPAdr_instance(
Execute
UnitNo
BootPControl
IPAdr
SubnetMask
DefaultGateway := NewDefaultGateway,
Done
Busy
Error
ErrorID
2-1098
ChangeIPAdr_instance
ChangeIPAdr
Execute
Done
UnitNo
Busy
BootPControl
Error
IPAdr
ErrorID
SubnetMask
DefaultGateway
Data type
BOOL
False
BOOL
False
BOOL
False
BOOL
False
BOOL
False
WORD
16#0
ARRAY[0..3] OF BYTE
[4(16#0)]
ARRAY[0..3] OF BYTE
[4(16#0)]
ARRAY[0..3] OF BYTE
[4(16#0)]
RS
ChangeIPAdr
:= 16#C0;
:= 16#A8;
:= 16#FA;
:= 16#0A;
:= 16#FF;
:= 16#FF;
:= 16#FF;
:= 16#00;
:= SettingTrigger,
:= _CBU_CPU,
:= UINT#0,
:= NewIPAddress,
:= NewSubnetMask,
=>Done0,
=>Busy0,
=>Error0,
=>ErrorID0);
Done0
Busy0
Error0
ErrorID0
Initial value
Change Flag
Changing IP Address Flag
IP address changed
Error in changing the IP
address
Changing IP address
Error ID for changing the IP
address
IP address
Subnet mask
Default gateway

NY-series Instructions Reference Manual (W560)

Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents