Please enable JavaScript to view this site.

Function that returns the contents of the indicated workstation status word.

Note: From RTE 34.03.06, the keywords fb_stsw and fb_ctrlw are available.

Syntax

i32 co_statusword (i32 nWs [, i32 flgCw=FALSE])

nWs

Robox station ID (logical workstation 1-:-64).

Note: If 0 is specified as ws then it is meant for all.

flgCw

Parameter to also enable reading the control word as well. (optional, default FALSE)

Result

Returns:

Condition

Value

Description

flgCw = 0

Value of status word

Value returned in w0 (lower part, first word)

0

Value returned in w1 (upper part, second word)

flgCw <> 0

Value of the status word

Value returned in w0

Value of the control word

Value returned in w1

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC