SetSecurity (Set Security)

The SetSecurity instruction is used to implement up to three levels of security in the datalogger.

Syntax

SetSecurity ( Security1, Security2, Security3 )

Remarks

The SetSecurity instruction is executed at compile time. Up to three levels of security can be set in the datalogger. Level 1 must be set before Level 2 can be set, and Level 2 must be set before Level 3 can be set. If a level is set to 0, any level greater than it will also be set to 0 (for example, if Level 2 is 0, Level 3 is 0). Valid security codes are 1 through 65535 (0 is no security). Each level must have a unique code.

Use the SetSetting instruction to set security during run-time by using a variable for the security code, which can then be edited by the user.

Software access functions affected by each level of security are:

Security and the Keyboard Display

Using the keyboard display with security set behaves similarly to accessing the datalogger with communication software such as LoggerNet or PC400.

If security is set in the datalogger and you try to access a function that is blocked by security, you will be prompted to unlock security. Security settings are accessible via the Settings table. If security is set, the codes will be displayed as -1 when viewed, unless the highest level security code has been entered.

If all three levels of security are set, each level of security code unlocks the following:

Security and HTTP/FTP Capability

Refer to the WebPageBegin/WebPageEnd instructions for information on the Security command to unlock datalogger security when viewing and accessing web pages generated by the datalogger.

Refer to WebServer/API Commands for information on enabling Basic Access Authentication for the datalogger’s web server.

Note that if the default .csipassword "anonymous" and read-only access is enabled, then read-only access to the datalogger's web page will be provided even if all three levels of numeric SetSecurity are enabled.

Files that can run as a program (*.cr1x files) are inaccessible via ClosedFTP File Transfer Protocol. A TCP/IP application protocol. when security is active. They will not show up in directory listings and they cannot be opened for reading, writing, or deleting unless the user name supplied by the client has "Admin" appended to the datalogger's FTP user name and the highest level of security appended to the datalogger's FTP password. For example, if security level 1 = 111, the ftp user name = MyUserName, and the ftp password = MyPassword, enter ftp://MyUserNameAdmin:MyPassword111@192.168.1.23/CPU to allow the ftp client to log in with full access to program files.