3
Configuration Device Variables for CJ-
series Units
Device
Variable
Name
(Type)
Function
General
*_StartUpDe
layCfg
Offset = 07
Additonal
SSI-
communicati
on Start-up
Delay
(UINT)
Additional SSI-communication
start-up delay **:
0 = 2000 ms delay
1 = 1050 ms delay
2 = 500 ms delay
3 = no delay
Valid Range: 0 to 3
Read/Write Access Type
SSI Channel 1 ***
*_Ch1_SSIB
audrateCfg
Offset = 10
(channel 1)
or 20
(channel 2)
SSI
Baudrate
(UINT)
SSI baudrate:
0 = 400 kHz
1 = 100 kHz
2 = 200 kHz
3 = 300 kHz
4 = 400 kHz
5 = 500 kHz
6 = 1 MHz
7 = 1.5 MHz
65535 = No encoder connected
(the rest of settings is not
processed)
Valid Range: 0 to 7 or 65535
Read/Write Access Type
*_Ch1_ValC
odeCfg
Offset = 11
(channel 1)
or 21
(Channel 2)
Value
Coding
(UINT)
Value coding:
0 = Gray code
1 = Binary
2 = Raw SSI data only (settings
for leading/trailing bits, optional
SSI encoder status bits, and parity
are not processed)
Valid Range: 0 to 2
Read/Write Access Type
*_Ch1_Reso
lutionCfg
Offset = 12
(channel 1)
or 22
(channel 2)
Encoder
Resolution
(WORD)
Encoder resolution:
Number of data bits: [9..31] (in
BCD), 0 means value = 24 bits
Valid Range: 16#0000, 0009 to
0031
Read/Write Access Type
*_Ch1_Lead
BitSzCfg
Offset = 13
(channel 1)
or 23
(channel 2)
Leading Bits
(WORD)
Leading bits ****:
Number of bits preceding encoder
data: [0..31] (in BCD)
Σ
m+12..13
≤
31
Valid Range: 16#0000 to 0031
Read/Write Access Type
*_Ch1_Trail
BitSzCfg
Offset = 14
(channel 1)
or 24
(channel 2)
Trailing Bits
(WORD)
Trailing bits ****:
Number of bits following encoder
data: [0..31] (in BCD)
Σ
m+12..14
≤
31
Valid Range: 16#0000 to 0031
Read/Write Access Type
*_Ch1_SSIS
taBitSzCfg
Offset = 15
(channel 1)
or 25
(channel 2)
SSI Encoder
Status Bits
(WORD)
Optional SSI encoder status bits
(see *_Ch1_SSISta):
Number of bits succeeding trailing
bits: [0..8]
Σ
m+12..15
≤
31
Valid Range: 16#0000 to 0008
Read/Write Access Type
*_Ch1_Parit
yChkCfg
Offset = 16
(channel 1)
or 26
(channel 2)
Parity Check
(USINT)
Parity check:
0 = no parity check
1 = check for even parity
2 = check for odd parity
Parity is calculated over all bits
received.
Valid Range: 0 to 2
Read/Write Access Type
*_Ch1_Mon
oflopTmCfg
Offset = 17
(channel 1)
or 27
(channel 2)
Mono-flop
Time
(WORD)
Mono-flop time: check if the data
line is high after the mono-flop
time has expired.
Set in tens of microseconds
(BCD).
Valid Range: 16#0000 to 9999
Read/Write Access Type
SSI Channel 2 ***
Use *_Ch2
in place of
*_Ch1
---
Same as SSI channel 1
**
This delay is additional to the PLC-system start-up time.
***
Refer to the operation manual of the SSI encoder for proper
configuration of the SSI Unit’s channels.
****
Trailing and leading bits are to be used for connecting Tannen-
baum coded SSI-encoders. E.g. for a 24-bit Tannenbaum
encoder with 10 multi-turn and 10 single turn-bits and 1 status
bit, centred around bit 12/13, the leading bits have to be set to
2 and the trailing bits to 2.
Operation Device Variables for CJ-series
Units
Device
Variable
Name (Type)
Function
General
*_RdNxtErr
Read Next
Error (BOOL)
Read (next) Error (0
→
1) from
error history.
Read next error at the rising
edge (from the error list in the
SSI Unit). The error code can
be read from *_ErrCode1 and
*_ErrCode2.
Valid Range: 0,1
Read/Write Access Type
*_ClrAllErr
Clear All
Errors (BOOL)
Clear all Errors (0
→
1) from
error history.
Clear all errors at the rising
edge (from the error list in the
SSI Unit).
Valid Range: 0,1
Read/Write Access Type
*_ErrCode1
Error Code 1
(WORD)
Error Code (See Error
Processing section for details)
Valid Range: 16#0000 to
FFFFFFFF
Read Only Access Type
Error Code 2
(WORD)
*_ErrCode2
*_GlblErr
Global Error
(BOOL)
Global Error Indication.
Indicates that one or more
errors have occurred and that
their error code(s) are included
in the error list of the Unit.
Valid Range: 0,1
Read Only Access Type
*_UnitInitSta
Unit Initializing
(BOOL)
Unit initialising after restart or
power-up.
Valid Range: 0,1
Read Only Access Type
SSI Channel 1
*_Ch1_SSIDat
SSI Data
(DWORD)
Current SSI data.
Valid Range: 16#0000 to
FFFFFFFF
Read Only Access Type
*_Ch1_SSISta
SSI Encoder
Status (UINT)
Optional SSI encoder status
(see *_Ch1_SSIStaBitSzCfg)
Valid Range: 16#00 to FF
Read Only Access Type
*_Ch1_ValidD
atRcvSta
Valid SSI Data
Received
(BOOL)
Valid SSI data received since
previous I/O-refresh
Valid Range: 0,1
Read Only Access Type
SSI Channel 2
*_Ch2_SSIDat
SSI Data
(DWORD)
Current SSI data
Valid Range: 16#0000 to
FFFFFFFF
Read Only Access Type
*_Ch2_SSISta
SSI Encoder
Status (UINT)
Optional SSI encoder status
(see *_Ch2_SSIStaBitSzCfg)
Valid Range: 16#00 to FF
Read Only Access Type
*_Ch2_ValidD
atRcvSta
Valid SSI Data
Received
(BOOL)
Valid SSI data received since
previous I/O-refresh
Valid Range: 0,1
Read Only Access Type