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
Function
The ChangeFTPAccount instruction changes the FTP login name and password of the built-in
EtherNet/IP port or EtherNet/IP Unit that is specified with UnitNo (Unit number), to the values specified
with FTP login name NewUserName and password NewPassword.
When Execute changes from FALSE to TRUE, the values of NewUserName and NewPassword are
written as the FTP login name and password of the built-in EtherNet/IP port. The value of Busy remains
TRUE during execution of the instruction, and the value of Done changes to TRUE when reception of
the setting change request is completed. The settings are not applied yet when Done changes to
TRUE.
If you specify an EtherNet/IP Unit with UnitNo, the EtherNet/IP Unit is restarted when execution of the
instruction ends. The new login name and password are enabled when restarting the Unit ends.
You can use this instruction to change the FTP login name and password of the built-in EtherNet/IP port
or an EtherNet/IP Unit from an HMI.
The data type of UnitNo is enumerated type _eUnitNo. The meanings of the enumerators are as fol-
lows:
Enumerator
_CBU_CPU
_CBU_No00 to _CBU_-
*1
No15
*1 This can be set only for an NJ-series CPU Unit.
The valid range of the value of NewPassword depends on whether you specify the built-in EtherNet/IP
port or an EtherNet/IP Unit for UnitNo (Unit number), as given below.
Setting of UnitNo
Built-in EtherNet/IP port
EtherNet/IP Unit
The following example shows how to change the FTP login name and password of the EtherNet/IP Unit
with unit number 00. If A (Execute) is changed to TRUE from an HMI or other device, the FTP login
name is changed to 'OMRON' and the password is changed to 'omron0123'.
LD
A
_CBU_No00
'OMRON'
'omron0123'
ST
ChangeFTPAccount_instance
The FTP login name is changed to 'OMRON' and the password is changed to 'omron0123'
for the EtherNet/IP Unit with unit number 00.
2-1100
Built-in EtherNet/IP port
Unit number 00 to 15 of the EtherNet/IP Unit
8 to 32 single-byte alphanumeric characters (case sensitive)
1 to 8 single-byte alphanumeric characters (case sensitive)
ChangeFTPAccount_instance
ChangeFTPAccount
Execute
Done
UnitNo
Busy
NewUserName
Error
NewPassword
ErrorID
(A,_CBU_No00,'OMRON','omron0123',B,Busy0,Error0,ErrorID0);
EtherNet/IP Unit with unit number 00
FTP login name: OMRON
Password: omron0123
Meaning
Valid range
B
Busy0
Error0
ErrorID0

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents