2-641
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
ResetUnit
ResetUnit
The ResetUnit instruction restarts a CPU Bus Unit or Special I/O Unit.
The ResetUnit instruction restarts the CPU Bus Unit or Special I/O Unit with unit number UnitNo.
The data type of UnitNo is enumerated type _eUnitNo. The meanings of the enumerators are as fol-
lows:
The following example is for when UnitNo is _CBU_No00. CPU Bus Unit with unit number 0 is
restarted.
Instruction Name FB/FUN Graphic expression ST expression
ResetUnit Restart Unit FB ResetUnit_instance(Exe-
cute, UnitNo, Done, Busy,
Error, ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
UnitNo Unit num-
ber
Input Unit number of Unit to
restart
_CBU_No00 to
_CBU_No15,
_SIO_No00 to
_SIO_No95
--- _CBU
_No00
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
UnitNo Refer to Function for the enumerators of enumeration type _eUnitNo.
Function
Enumerators Meaning
_CBU_No00 to _CBU_No15 Unit number of CPU Bus Unit, 00 to 15
_SIO_No00 to _SIO_No95 Unit number of Special I/O Unit, 00 to 95
ResetUnit
Execute Done
UnitNo Busy
Error
ErrorID
ResetUnit_instance
ResetUnit_instance(A, _CBU_No00, abc, def, ghi, jkl);
LD ST
ResetUnit
Execute Done
UnitNo Busy
Error
ErrorID
ResetUnit_instance
A
_CBU_No00
def
ghi
jkl
abc