EasyManua.ls Logo

Moog SmartMotor

Moog SmartMotor
909 pages
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...
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 291 of 909
B(word,bit)
Status Byte
APPLICATION: System
DESCRIPTION: Reads the status from the specified status word and bit number
EXECUTION: Immediate
CONDITIONAL TO: N/A
LIMITATIONS: N/A
READ/REPORT: RB(word,bit)
WRITE: Read only
LANGUAGE ACCESS: Formulas and conditional testing
UNITS: Binary bit
RANGE OF VALUES:
Input:
word argument range: 0–17
bit argument range: 0–15
Output: 0 or 1
TYPICAL VALUES: N/A
DEFAULT VALUE: N/A
FIRMWARE VERSION: 5.x and later
COMBITRONIC: RB(2,4):3, x=B(2,4):3
where ":3" is the motor address use the actual address or a
variable
DETAILED DESCRIPTION:
The B command reads the status from the specified status word and bit number:
=B(word,bit)
where "word" is the word number and "bit" is the bit number.
EXAMPLE: Check timer status
IF B(4,0)==0 'Check Timer 0 status
a=a+1 'Updating a every second
TMR(0,1000) 'Set Timer 0 counting
ENDIF
Part 2: Commands: B(word,bit)

Table of Contents

Related product manuals