Autonics LSC Series Use and care manual

LSC Series
LSC Communication (ASCII)
Communication Manual ÊÊÊ MCY-LSCC1-V1.0-2301US


Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê5
Manual Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê7
Common Symbols in the Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê9
1. Message Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê11
1.1. Packet Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê11
1.2. Data Size and Type of ASCII Communication Packet Configuration . . . . . . . . . . . . . . . . . . . . . . . . Ê11
1.3. Kind of Command Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê12
1.4. Variable Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê12
2. Message Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê13
3. Message Data Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê17
3.1. Connect. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê17
3.1.1. Connect TCP/IP Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê17
3.2. Login / Logout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê18
3.2.1. Login. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê18
3.2.2. Logout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê19
3.2.3. Login Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê19
3.3. Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê20
3.3.1. Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê20
3.3.2. Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê21
3.4. Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê22
3.4.1. Input Configuration (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê22
3.4.2. Input Configuration (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê23
3.4.3. Input 3 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê24
3.4.4. Input 4 Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê25
3.5. Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê26
3.5.1. Output Configuration (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê26
3.5.2. Output Configuration (Read). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê27
3.5.3. Output 4 Mode (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê28
3.5.4. Output 4 Mode (Read). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê29
3.6. Filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê30
3.6.1. Particle Filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê30

3.6.2. Median Filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê31
3.6.3. Average Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê32
3.6.4. Filter Setting Value Confirm (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê33
3.6.5. Filter Setting Value Confirm (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê34
3.7. Teaching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê35
3.7.1. Teaching Configuration (Write). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê35
3.7.2. Teaching Configuration (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê36
3.7.3. Teaching Time (Write). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê37
3.7.4. Teaching Time (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê38
3.7.5. Teaching Start Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê39
3.7.6. Teaching Start Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê40
3.7.7. Teaching End Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê40
3.8. Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê41
3.8.1. Scan Data Configuration (Write). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê41
3.8.2. Scan Data Configuration (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê42
3.8.3. Device Configuration Status Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê43
3.8.4. Scan Data Transmission Start Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê44
3.8.5. Scan Data Transmission Stop Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê45
3.8.6. Scan Data Transmission Start Notice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê46
3.8.7. Scan Data Transmission Stop Notice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê46
3.8.8. Measurement Mode Scan Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê47
3.9. Device Setting (Bluetooth) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê48
3.9.1. Bluetooth SSID (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê48
3.9.2. Bluetooth SSID (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê49
3.9.3. Bluetooth Activation (Write) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê50
3.9.4. Bluetooth Activation (Read) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê51
3.10. Device Setting (Password). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê52
3.10.1. Password Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê52
3.11. Parameter Save . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê53
3.11.1. Save in Flash. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê53
3.12. Error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê54
3.12.1. Communication Packet Grammar Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê54

Preface
Thank you for purchasing Autonics products.
Be sure to read and follow the Safety Precautions thoroughly before use.
This manual contains information about the product and how to use it properly, so keep it in a place
where users can easily find it.
Preface 5

6 Autonics | LSC Series

Manual Guide
•Use the product after fully reading the contents of the manual.
•The manual explains the product functions in detail and does not guarantee the contents other than
the manual.
•Any or all of the manual may not be edited or copied without permission.
•The manual is not provided with the product.
•Download and use from our website (www.autonics.com).
•The contents of the manual are subject to change without prior notice according to the improvement
of the product’s performance, and upgrade notices are provided through our website.
•We put a lot of effort to make the contents of the manual a little easier and more accurate.
Nevertheless, if you have any corrections or questions, please feel free to comment through our
website.
Manual Guide 7

8 Autonics | LSC Series

Common Symbols in the Manual
Failure to follow instructions may result in serious injury or death.
Failure to follow instructions may result in injury or product damage.
Supplementary explanation of the function
Example of that function
Important information about the feature
Common Symbols in the Manual 9

10 Autonics | LSC Series

1. Message Format
1.1. Packet Format
The packet consists of Start, Packet Size, Command Type, Command, Data, and End codes.
Separate each component with (,).
Component Description
Start Packet start code
Packet Size Total packet size (The number of characters in the Ascii communication)
Command Type Message type between Server and Client
Command Kind of command
Data Data
End Packet end code
1.2. Data Size and Type of ASCII Communication Packet
Configuration
Start Packet
Size
Command
Type
Command Data End
Data Size (byte) 1 4 3 n n 1
Data Type byte String String String String byte
ASCII <STX>0016,sWC,LSFmedian,1<ETX>
Hex 02 30 30 31 36 2C 73 57 43 2C 4C 53 46 6D 65 64 69 61 6E 2C 31 03
1.1. Packet Format 11

1.3. Kind of Command Type
ASCII Hex Description
<STX> 02 Packet start character
<ETX> 03 Packet end character
sMC 734D43 Sensor command (Sensor Method Command)
sMA 734D41 Sensor command response (Sensor Method Ack)
sRC 735243 Sensor read (Sensor Read Command)
sRA 735241 Sensor read response (Sensor Read Ack)
sWC 735743 Sensor write (Sensor Write Command)
sWA 735741 Sensor write response (Sensor Write Ack)
sCA 734341 Continuous data response (Sensor Continuous Ack)
sEA 734541 Event response (Sensor Event Ack)
Use ,as the distinguishing character for each data in the ASCII packet.
The ASCII character ,is represented by the Hex value 2C .
1.4. Variable Format
Variable Data size (byte) Setting value range Sign
UInt8_t 1 0 to 255 X
Int8_t 1 -128 to 127 O
UInt16_t 2 0 to 65,535 X
Int16_t 2 -32,768 to 32,767 O
UInt32_t 4 0 to 4,294,967,295 X
Int32_t 4 -2,147,483,648 to 2,147,483,647 O
String Depends on string length - -
Make sure that the last character of the string variable does not end with 0.
12 Autonics | LSC Series

2. Message Definition
Function Command Command
Type
Description
Connect TCP/IP
communication
FirstConnectDummySend sEA TCP/IP communication
connect response
Login SetAccessLevel sMC Login
SetAccessLevel sMA Login response
Logout Logout sMC Logout
Logout sMA Logout response
Login error LoginError sWA Response on receipt of login
required command
Initialization LSFactoryReset sMC Initialization
LSFactoryReset sMA Initialization response
Import LSLoadParameter sMC Import parameter saved in
Flash into device internal
memory
LSLoadParameter sMA Import response
Input configuration
(write, read)
LSDIConfig sWC, sRC Input setting
LSDIConfig sWA, sRA Input setting response
Input 3 mode LS3DIMode sWC Input 3 setting
LS3DIMode sWA Input 3 setting response
Input 4 mode LS4DIMode sWC Input 4 setting
LS4DIMode sWA Input 4 setting response
Output configuration
(write, read)
LSDOConfig sWC, sRC Output setting
LSDOConfig sWA, sRA Output setting response
Output 4 mode
(write, read)
LS4DOMode sWC, sRC Output 4 Sync output setting
and confirm
LS4DOMode sWA, sRA Output 4 Sync output setting
and confirm response
Particle filter LSFparticle sWC Particle filter setting
LSFparticle sWA Particle filter setting response
Median filter LSFmedian sWC Median filter setting
LSFmedian sWA Median filter setting response
2. Message Definition 13

Function Command Command
Type
Description
Average filter LSFaverage sWC Average filter setting
LSFaverage sWA Average filter setting response
Filter setting value
confirm (write, read)
LSFConfig sWC, sRC Filter setting value confirm
LSFConfig sWA, sRA Filter setting value confirm
response
Teaching
configuration (write,
read)
LSTeachingConfig sWC, sRC Teaching setting
LSTeachingConfig sWA, sRA Teaching setting response
Teaching time (write,
read)
LSTeachingTime sWC, sRC Teaching time setting
LSTeachingTime sWA, sRA Teaching time setting
response
Teaching start
command
LSTeachingStart sMC Teaching start
LSTeachingStart sMA Teaching start response
Teaching start notice LSTeachingStart sEA Teaching start event response
Teaching end notice LSTeachingEnd sEA Teaching end event response
Scan data
configuration (write,
read)
LSScanDataConfig sWC, sRC Scan data configuration
setting
LSScanDataConfig sWA, sRA Scan data configuration
setting response
Device configuration
status read
SensorScanInfo sRC Device configuration read
SensorScanInfo sRA Device configuration read
response
Scan data
transmission start
command
SensorStart sMC Scan data transmission start
SensorStart sMA Scan data transmission start
command response
Scan data
transmission stop
command
SensorStop sMC Scan data transmission stop
SensorStop sMA Scan data transmission stop
command response
Scan data
transmission start
notice
LSScanStart sEA Scan data transmission start
event response by external
input (IN3)
Scan data
transmission stop
notice
LSScanStop sEA Scan data transmission stop
event response by external
input (IN3)
14 Autonics | LSC Series

Function Command Command
Type
Description
Measurement mode
scan data
ScanData sCA Scan data receipt in the
measurement mode
Bluetooth SSID (write,
read)
LSBluetoothConfig sWC, sRC Bluetooth setting
LSBluetoothConfig sWA, sRA Bluetooth setting response
Bluetooth activation
(write, read)
LSBluetooth sWC, sRC Bluetooth activation setting
LSBluetooth sWA, sRA Bluetooth activation setting
response
Password change AccessLvPassword sWC Password change
AccessLvPassword sWA Password change response
Parameter save LSStoreParameter sMC Parameter save setting in
Flash
LSStoreParameter sMA Parameter save setting
response in Flash
Error SyntaxError sEA Event response to
communication message
error
2. Message Definition 15

16 Autonics | LSC Series

3. Message Data Definition
3.1. Connect
3.1.1. Connect TCP/IP Communication
Device »PC
Item ASCII
Message sEA FirstConnectDummySend
ASCII <STX>0020,sEA,FirstConnectDummySend<ETX>
Hex 02 30 30 32 30 2C 73 45 41 2C 46 69 72 73 74 43 6F 6E 6E 65 63 74 44 75 6D 6D 79
53 65 6E 64 03
3.1. Connect 17

3.2. Login / Logout
3.2.1. Login
PC »Device
Item ASCII
Message sMC SetAccessLevel
Password (String) 0000 (default)
ASCII <STX>001E,sMC,SetAccessLevel,0000<ETX>
Hex 02 30 30 31 45 2C 73 4D 43 2C 53 65 74 41 63 63 65 73 73 4C 65 76 65 6C 2C 30 30
30 30 03
Device »PC
Item ASCII
Message sMA SetAccessLevel
Info (UInt8_t) 0: Error
1: Success
ASCII <STX>001B,sMA,SetAccessLevel,1<ETX>
Hex 02 30 30 31 42 2C 73 4D 41 2C 53 65 74 41 63 63 65 73 73 4C 65 76 65 6C 2C 31 03
18 Autonics | LSC Series

3.2.2. Logout
PC »Device
Item ASCII
Message sMC Logout
ASCII <STX>0011,sMC,Logout<ETX>
Hex 02 30 30 31 31 2C 73 4D 43 2C 4C 6F 67 6F 75 74 03
Device »PC
Item ASCII
Message sMA Logout
Info (UInt8_t) 0: Error
1: Success
ASCII <STX>0013,sMA,Logout,1<ETX>
Hex 02 30 30 31 33 2C 73 4D 41 2C 4C 6F 67 6F 75 74 2C 31 03
3.2.3. Login Error
Device »PC
•When the communication command data which is only for login is received while logout status,
Item ASCII
Message sWA LoginError
ASCII <STX>0015,sWA,LoginError<ETX>
Hex 02 30 30 31 35 2C 73 57 41 2C 4C 6F 67 69 6E 45 72 72 6F 72 03
3.2. Login / Logout 19

3.3. Device
3.3.1. Initialization
PC »Device
Item ASCII
Message sMC LSFactoryReset
ASCII <STX>0019,sMC,LSFactoryReset<ETX>
Hex 02 30 30 31 39 2C 73 4D 43 2C 4C 53 46 61 63 74 6F 72 79 52 65 73 65 74 03
Device »PC
Item ASCII
Message sMA LSFactoryReset
Info (UInt8_t) 0: Error
1: Success
ASCII <STX>001C,sMA,LSFactoryReset,1<ETX>
Hex 02 30 30 31 43 2C 73 4D 41 2C 4C 53 46 61 63 74 6F 72 79 52 65 73 65 74 20 2C 31
03
20 Autonics | LSC Series
Table of contents
Other Autonics Industrial Equipment manuals
Popular Industrial Equipment manuals by other brands

Rockwell Automation
Rockwell Automation Allen-Bradley ControlNet Ex Media Planning and installation manual

BOH Enviromental
BOH Enviromental FPU Series user manual

Danfoss
Danfoss AFQ 2 operating guide

Schmalz
Schmalz FMP-SVK Series operating instructions

SEW-Eurodrive
SEW-Eurodrive X Series Assembling and Operating Instructions

Pilz
Pilz PSEN sl-0.5p 3.1 operating manual