EasyManua.ls Logo

Omron TJ2-MC64 - PROGRAMMING - Page 132

Omron TJ2-MC64 - PROGRAMMING
362 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC commands
PROGRAMMING MANUAL 126
Revision 1.0
3.2.181 LN
/i
3.2.182 LOCK
/i
3.2.183 MARK
/i
3.2.184 MARKB
/i
Type Mathematical function
Syntax LN(expression)
Description The LN function returns the natural logarithm of the expression. The input
expression value must be greater than 0.
Arguments expression
Any valid BASIC expression.
Example >> PRINT LN(10)
2.3026
See also N/A
Type System command
Syntax LOCK(code)
UNLOCK(code)
Description The LOCK command prevents the program from being viewed, modified or
deleted by personnel unaware of the security code. The lock code number is
stored in the Flash-PROM. The UNLOCK command allows the locked state
to be unlocked. The code number can be any integer and is held in encoded
form. LOCK is always an immediate command and can be issued only when
the system is UNLOCKED.
LOCK and UNLOCK are available from within Trajexia Studio, users can
select LOCK and UNLOCK commands from the Online menu.
Arguments code
Any valid integer with maximum 7 digits.
Example >> LOCK(561234)
The programs cannot be modified or seen.
>> UNLOCK(561234)
The system is now unlocked.
See also N/A
Caution
The security code must be remembered; it will be required to
unlock the system. Without the security code the system can not
be recovered.
Type Axis parameter (read-only)
Syntax MARK
Description The MARK is set to FALSE when the REGIST command has been executed
and is set to TRUE when the primary registration event occurs. Only when
this parameter is TRUE, the REG_POS value is correct.
Arguments N/A
Example loop:
WAIT UNTIL IN(punch_clr)=ON
MOVE(index_length)
REGIST(3)
WAIT UNTIL(MARK)
MOVEMODIFY(REG_POS + offset)
WAIT IDLE
GOTO loop
See also AXIS, REGIST, REG_POS.
Type Axis parameter (read-only)
Syntax MARKB
Description The MARKB is set to FALSE when the REGIST command has been exe-
cuted and is set to TRUE when the primary registration event occurs. Only
when this parameter is TRUE, the REG_POSB value is correct.
Arguments N/A

Related product manuals