Home

SC-4104-W1 User Manual

image

Contents

1. 69 4 4 Function 03 Read Multiple Registers This function code is used to read the value at addresses 4xxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x03 02 03 Reference Address Refer to section 4 1 Address 4xxxx 04 05 Word Count Number of word W to read Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x03 02 Byte Count Response data byte N W 2 03 N 2 Word Value Response word data Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x83 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 70 4 5 Function 04 Read Multiple Input Registers This function code is used to read the value at addresses 3xxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x04 02 03 Reference Address Refer to section 4 1 Address 3xxxx 04 05 Word Count Number of word W to read Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x04 02 Byte Count Response data byte N W 2 03 N 2 Word Value Response word data Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x84 02 Exception Code Refer to section 4 Err
2. Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x35 03 Response Delay Time 0x00 Ox1E ms Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x35 03 Response Delay Time 0 OK Others Error Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 9 Sub function 54 Read Response Delay Time This sub function code is used to read the Modbus RTU response delay time of the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x36 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x36 03 Response Delay Time 0x00 Ox1E ms Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015
3. 49 3 21 aa0 Description Read host watchdog status of the module Syntax aa0 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 0 The command to read host watchdog status Response Valid Command laass CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF ss Host watchdog status The status will store into flash and only may reset by the command aa1 7 6 5 4 3 2 1 0 1 Reserved 2 Reserved 1 Host watchdog status 0 disable 1 enable 2 Host watchdog timeout flag O clear 1 set Examples Command 010 Response 0104 Read module 01 host watchdog status returns 04 host watchdog timeout flag is set Related Command Section 3 20 Section 3 22 aa1 Section 3 23 aa2 Section 3 24 aa3ehh Section 3 25 aa4 Section 3 27 aa4S Section 3 28 aad5ppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 50 3 22 aa1 Description Reset host watchdog status of the module Syntax aal1 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 1 The command to reset host watchdog status R
4. Response Format Delimiter Character Module Address Data Checksum CR CR End of command character carriage return OxOD used to end a frame Note 1 All characters should be in upper case 2 There will be no response if the command syntax is incorrect there is a communication error or there is no module with the specified address SC 4104 W1 User Manual v1 01 Feb 16 2015 15 An Overview of the DCON Command Set General Command Set Command Response Description Section Set configuration of th aannttccff laa ner tee 3 1 module Read configuration of the aa2 laattccff g 3 2 module Read reset status of the aa5 laa 3 3 module Read all digital input output aa6 data Paes ees tera data Read firmware version of the aaF laa data 3 5 module Coordinate the operation aaLCOn laa status between the digital 3 6 input and the digital output Read whether or not the operation status between the aaLC1 laan K 3 7 digital input and the digital output is coordinated Set the active delay time for aaLC2nnnn laa d 7 3 8 the digital output Read the active delay time for aaLC3 laannnn E X 3 9 the digital output aaM laa data Read module name 3 10 Read communication protocol aaP laasc j 3 11 information aaPc laa Set communication protocol 3 12 aa gt data Read all analog in
5. 54 3 26 aa4P Description Read power on value of digital output for a specified module Syntax aa4P CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 4P The command to read power on value of digital output Response Valid Command laa data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data The digital output power on value Examples Command 014P Response 010F00 Read module 01 power on value returns OF Related Command Section 3 25 aa4 Section 3 28 aa5ppss Section 3 29 aa5P Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 55 3 27 aa4S Description This command is used to read the digital output safe value for a specified module Syntax aa4S CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 4S The command to read safe value of digital output Response Valid Command aa data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data T
6. 4 10 3 Sub function 05 Read Communication Setting This sub function code is used to read the communication protocol settings for the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x05 03 Reserved 0x00 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x05 03 Reserved 0x00 04 Baud Rate Refer to section 2 6 Baud Rate Setting 05 07 Reserved 0x00 08 Mode 0 DCON 1 Modbus RTU 09 10 Reserved 0x00 0x00 Note This information is the data saved in the EEPROM and will be used for the next power on reset It is NOT the currently used settings Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 79 4 10 4 Sub function 06 Write Communication Setting This sub function code is used to configure the communication protocol for the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x06 03 Reserved 0x00 04 Baud Rate Refer to section 2 6 Baud Rate Setting 05 07 Reserved 0x00 08 Mode 0 DCON 1 Modbus RTU 09 10
7. Coils Address Description Attribute 00001 10001 Digital Output RL1 R W 00002 10002 Digital Output RL2 R W 00003 10003 Digital Output RL3 R W 00004 10004 Digital Output RL4 R W 10033 Digital Input Channel R 00129 10129 Digital Output RL1 Safe Value R W 00130 10130 Digital Output RL2 Safe Value R W 00131 10131 Digital Output RL3 Safe Value R W 00132 10132 Digital Output RL4 Safe Value R W 00161 10161 Digital Output RL1 Power on Value R W 00162 10162 Digital Output RL2 Power on Value R W 00163 10163 Digital Output RL3 Power on Value R W 00164 10164 Digital Output RL4 Power on Value R W Communication Protocol 00257 10257 0 DCON R W 1 Modbus RTU Modbus host watchdog mode 0 do not allow DO command when watchdog 00260 10260 timeout occur R W 1 can use DO command to clear host watchdog timeout status 00261 10261 1 enable 0 disable host watchdog R W Temperature Scale 00267 10267 0 Celsius C R W 1 Fahrenheit F DCON Protocol Checksum 00268 10268 0 Enable R W 1 Disable Host watch dog timeout status write 1 to clear 00270 10270 R W host watch dog timeout status Read the Reset Status 00273 10273 0 This is NOT the first time the module has been R read since being powered on SC 4104 W1 User Manual v1 01 Feb 16 2015 1 This is the first time the module has been read since being powered on Coordinate the status between DI and
8. Reserved 0x00 0x00 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x06 03 Reserved 0x00 04 Baud Rate Refer to section 2 6 Baud Rate Setting 05 07 Reserved 0x00 08 Mode 0 DCON 1 Modbus RTU 09 10 Reserved 0x00 0x00 Note This information is the data saved in the EEPROM and will be used for the next power on reset It is NOT the currently used settings Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 5 This sub function code is used to read the firmware version information for Sub function 32 Read Firmware Version the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x20 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x20 03 Major Version 0x00 OxFF 04 Minor Version 0x00 OxFF 05 Build Version 0x00 OxFF Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 6 Sub function 39 Write Power on Value This sub function c
9. Section 3 15 Section 3 17 SC 4104 W1 User Manual v1 01 Feb 16 2015 aah aaDOhh 3 5 aaF Description This command is used to read the firmware version of a specified module Syntax aaF CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF F The command to read the firmware version Response Valid Command aa data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data A string indicating the firmware version of the module Examples Command 01F Response 0101 00 Read the firmware version of module 01 and returns a response indicating that the command was valid and that the firmware version is 01 00 Command 03F Response 03 Attempts to read the firmware version of module 03 and returns a response indicating that the command was invalid because module 03 does not exist Related Command None Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 26 3 6 aaLCOn Description This command is used to coordinate the operation status between the digital input and the digital output for a specified module Syntax aaLCOn CHKSUM CR Delimiter character aa The
10. 0 which denotes that the temperature scale is Celsius C Command 01 Response gt 026 40 Read the temperature analog value for module 01 returns a response indicating that the command was valid with a value of 026 40 which denotes that the temperature sensor indicated now is 26 4 C Related Command Section 3 18 aaA2CjToo Section 3 19 aaA3Cj Section 3 31 aaD Section 3 32 aaDt Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 40 3 14 aa Description This command is used to read the status of both the digital output and digital input channels of a specified module Syntax aa CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF Response Valid Command gt data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data The status of the digital output and digital input channels represented by a four digit hexadecimal value The first two digits represent the status of the digital output channels and the second two represent the status of the digital input channels data Format Byte 1 Byte 2 Byte 1 Digital output data Range is 00 OF Byte 2 Digital input data Range is 00 01 SC 410
11. 01P Response 0110 Read the communication protocol information for module 01 returns a response indicating that the command was valid with a value of 10 which denotes that the module supports both the DCON and Modbus RTU protocols and that the protocol that will be used at the next power on reset is DCON Command 03P Response 03 Attempts to read the communication protocol information for module 03 and returns a response indicating that the command was invalid because module 03 does not exist Related Command Section 3 12 aaPn Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 37 3 12 aaPc Description This command is used to set the communication protocol for a specified module Syntax aaPc CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF P The command to set the communication protocol c The protocol to be used 0 DCON Protocol 1 Modbus RTU Protocol Note Before using this command the module must be boot up at INIT mode section 2 5 if in DCON protocol mode The new protocol information will be saved in the EEPROM and will become effective after the next power on reset Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid
12. 13 2 6 Software Configuration Tables Baud Rate Settings CC 7 6 5 4 2 1 Data Bit Parity Stop Bit Reserved Data Rate Data Rate Bit 0 Bit 3 Code 3 4 5 6 7 A Baud 1200 2400 4800 9600 19200 38400 57600 115200 Data Bit Parity and Stop Bit Bit 6 Bit 7 Code 0 1 Format 8 n 1 8 n 2 8 e 1 8 0 1 Type Code Settings TT For the SC 4104 W1 the Type Code is fixed to 40 and cannot be changed Data Format Settings FF 7 6 5 4 3 2 Reserved CS Reserved Key Description CS Checksum Setting 0 Disabled 1 Enabled Note All Reserved bits should be zero SC 4104 W1 User Manual v1 01 Feb 16 2015 3 DCON Protocol All communication with the SC 4104 W1 consists of commands generated by the Host and responses transmitted by the SC 4104 W1 module Each module has a unique ID number that is used for addressing purposes and is stored in non volatile memory The module ID number is set to 01 by default and can be changed by sending a user command All commands to the modules contain the ID number as the address meaning that only the addressed module will respond Command Format Delimiter Character Module Address Command Checksum CR
13. 4 Modbus RTU Protocol The Modbus protocol was originally developed for Modicon controllers by Modicon Inc Detailed information related to the Modbus RTU protocol can be found at http www modbus org for more valuable information The SC 4104 W1 module supports the Modbus RTU protocol with communication baud rates ranging from 1200 bps to 115200 bps The data bits parity and stop bits are supported 8 n 1 8 n 2 8 e 1 and 8 o 1 The following Modbus functions are supported Function Code Description Section 0x01 Read the coils 0x02 Read the discrete inputs 0x03 Read multiple registers 0x04 Read multiple input registers 0x05 Write a single coil 0x06 Write a single register OxOF Write multiple coils 0x10 Write multiple registers 0x46 Read Write the module settings If the function specified in the message is not supported then the module responds as below Note that the address mapping for the Modbus protocol is Base 0 Error Response Byte Description Length Byte Value 00 Address 1 1 247 01 Function Code 1 Function Code 0x80 02 Register not support 02 E tion Cod 1 XCEPUON Ove 03 Modbus format invalid Note If a CRC mismatch occurs the module will not respond SC 4104 W1 User Manual v1 01 Feb 16 2015 65 4 1 Modbus Address Mapping
14. Command Invalid Command tlaa CHKSUM CR aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 013 Response gt Set module 01 digital output value to 3 and the module returns a response indicating that the command was valid Command 015S Response 01 Set current digital output value of module 01 as the safe value and returns success Related Command Section 3 20 Section 3 22 Section 3 24 Section 3 27 zk aa1 aa3ehh aa4S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 Section 3 21 Section 3 23 Section 3 25 Section 3 28 aa0 aa2 aa4 aadppss 3 31 aaD Description Read temperature scale of the module Syntax aaD CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF D The command for read temperature scale Response Valid Command laat CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF t Temperature scale C gt Celsius C F gt Fahrenheit F Examples Command 01D Response 01C
15. N W 2 07 N 6 Write Data Multiple word data Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x10 02 03 Reference Address The same as byte 02 03 of request 04 05 Output Value The same as byte 04 05 of request Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x90 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 Function 70 Read Write Module Setting This function code is used to read the configuration settings from the module or to change the settings for the module The following sub function codes are supported Sub function Code Description Section 00 0x00 Read the name of the module 4 10 1 04 0x04 Set the module address 4 10 2 05 0x05 Read the communication settings 4 10 3 06 0x06 Set the communication settings 4 10 4 32 0x20 Read the firmware version 4 10 5 39 7 Set the digital output power on value 4 10 6 40 8 Read the digital output power on value 4 10 7 53 0x35 Set the response delay time 4 10 8 54 0x36 Read the response delay time 4 10 9 If the module does not support the sub function code specified in the message then it will respond as follows Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Res
16. Read module 01 temperature scale returns C C Related Command Section 3 13 aa Section 3 32 aaDt Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 60 3 32 aaDt Description Set temperature scale to the module Syntax aaDt CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF D The command for read temperature scale t Temperature scale C gt Celsius C F gt Fahrenheit F Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 01DF Response 01 Set module 01 temperature scale to F F and returns success Command 01D Response 01F Read module 01 temperature scale returns F F Related Command Section 3 13 aa Section 3 31 aaD Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 61 3 33 aaRS Description Read current rotary switch and DIP switch value of the module Syntax aaRS CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF RS The command for read rotary switch and DIP switch value Response Valid Comman
17. Software Configuration Mode ssssssesseeseseseeseseeeeseeeeeeene 13 2 6 Software Configuration Tables cccccccccceceeeeeeeeeeeeeeeeeeeeeeeeeeees 14 3 DEON ProtoG EE 15 Te Te ter e 18 E 20 3 94 LEE 22 E NEE 24 oO E 26 3 67 aal COM EE 27 Biles AALS E 30 EE Ree TEE EN Ee e 33 Bit aM aieri EE 35 Es Saa SPREE OREN a E E EAN RRA 36 EE 38 Eu KEE ME 40 3 14 e EE 41 3 15 COIN desc tears tesa caesar tase a areas essed nesses eases 43 3 16 CDE Y B ence ee en ee ee ee A N 44 SAT aaDON EE 45 SS 61 gt 704 E 46 319 EE 48 3203 UATT inte ante lem lemme mate ae 49 3 21 e C OEE A E E E A E TA 50 3 22 PAG RBE 51 3 23 E 52 3 24 er 53 3 25 PRA AAEE E EAL A A AAE OT E 54 SC 4104 W1 User Manual v1 01 Feb 16 2015 2 3 26 eege 55 3 27 wl 56 3 28 elei 57 3 29 EE sae PEE ERE e a E TE E PERRET eR ETD 58 3 30 e LE 59 Bole Pag eier ee ee eege 60 Jo Mag ID GRR ape ce ce ee Pere re ee ce re re PO ce eee FO 61 Sch ebe 62 3 34 Eet 63 E E Ee E 64 Modbus RTU Protocol vsiiiccicicssicssiesinssansiesnsissnnsininiees 65 4 1 Modbus Address Mappimng 66 4 2 Function 01 Read COIS EEN 68 4 3 Function 02 Read Discrete JInputs 69 4 4 Function 03 Read Multiple Registers AAA 70 4 5 Function 04 Read Multiple Input Registers nnnnnnnenennnaaaeennnne 71 4 6 Function 05 Write Single Coil eeeseeeeeeerrerrrrrrrrrrrrrrr
18. Value 00 Module ID 1 247 01 Function Code 0x86 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 8 Function 15 Write Multiple Coils This function code is used to write values to addresses Oxxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code OxOF 02 03 Reference Address Refer to section 4 1 Address 0xxxx 04 05 Bit Count Number of bit B to write 06 Byte Count Byte number N B 7 A bit corresponds to a channel 07 N 6 Write Data Output ON The bit 1 Output OFF The bit 0 Response Byte Description Value 00 Module ID 1 247 01 Function Code OxOF 02 03 Reference Address The same as byte 02 03 of request 04 05 Output Value The same as byte 04 05 of request Error Response Byte Description Value 00 Module ID 1 247 01 Function Code Ox8F 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 9 Function 16 Write Multiple Registers This function code is used to write values to addresses 4xxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x10 02 03 Reference Address Refer to section 4 1 Address 0xxxx 04 05 Word Count Number of word W to write 06 Byte Count Byte number
19. aa CHKSUM CR Invalid Command aa CHKSUM CR gt Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF SC 4104 W1 User Manual v1 01 Feb 16 2015 28 Examples Command 01LC01 Response 01 Coordinates the function 1 operation between the digital input and the digital output of module 01 and the module returns a response indicating that the command was valid Related Command Section 3 7 aaLC1 Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 29 3 7 aaLC1 Description This command is used to read whether the operation between the digital input and the digital output for a specified module is coordinated Syntax aaLC1 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF LC1 The command to read whether the operation between the digital input and the digital output is coordinated Response Valid Command laan CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF n The operation status 0 The ON OFF sequence of the digital output is NOT coordi
20. address of the module to be read in hex format 00 to FF LCO The command to coordinate the operation status between the digital input and the digital output n The DI DO coordinated function number 0 The ON OFF sequence of the digital output will NOT be coordinated when the status of the digital input is changed Others The ON OFF sequence of the digital output will be coordinated with n function when the status of the digital input is changed The command to set the operating status SC 4104 W1 User Manual v1 01 Feb 16 2015 n The ON OFF Sequence of The Digital Output 0 Coordinated Disable 1 DI coordinated with RL1 4 the 4 operating status are NO000 NO100 NO110 NO111 2 DI coordinated with RL1 4 the 4 operating status are NO000 NC100 NC010 NC001 3 DI coordinated with RL1 4 the 3 operating status are NO100 NO110 NO111 4 DI coordinated with RL1 4 the 3 operating status are NO 100 NO010 NO001 5 DI coordinated with RL2 4 the 3 operating status are x100 X110 X111 6 DI coordinated with RL1 4 the 3 operating status are X100 x010 x001 7 DI coordinated only with RL1 When the DI gets high RL1 is switch to NO When the DI gets low RL1 is switch to NC The description of symbols of above list is below NO RL1 Normal Open NC RL1 Normal Close 0 DO Off 1 DO On X don t care Response Valid Command gt
21. 104 W1 S SC 4104 W1 mg SC 4104 W1 GND VS D Using RJ 11 Connector Von Von SC 4104 W1 SC 4104 W1 2 5 DIP Switch and Rotary Switch Configuration DIP Switch Description DIP 4 ON DCON Protocol OFF Modbus RTU Protocol ON DIP 2 ON Software Configuration i i I OFF Hardware Configuration ON High Node Address DIP 3 1 2 3 4 OFF Low Node Address N INIT M DP 4 L I eee OFF Normal Mode Address Setting via Hardware Configuration ON 0 to F for Address 128 143 vous i i Node Address Low Address 2 3 ON i E 0 to F for Address 144 159 Node Address High 2 3 Relay Test Button 9 ga e en SW1 SW4 are test push buttons that control O O O O Relay 1 Relay 4 ON OFF RL1 RL4 are LED Indicators to Relay 1 Swi sw2 sw3 sw4 Relay 4 When a relay is ON the corresponding O CH CH LEDwilbe on too SC 4104 W1 User Manual v1 01 Feb 16 2015 11 2 5 1 INIT Mode When the SC 4104 W1 is powered on with DIP switch SW4 in the ON position the module will be set to INIT Mode In this mode the position of DIP switches SW1 SW3 and the Address settings switch will be ignored and the SC 4104 W1 module will use the fixed configuration parameters listed below Protocol DCON Address 00 Baud Rate 9600 bps Data Format N 8 1 In this mode the relevant commands can be used to change the con
22. 15 31 Examples Command 01LC203E8 Response 01 Set the active delay time for the digital output of module 01 to 0x03E8 1000 milliseconds and the module returns a response indicating that the command was valid The digital output will be active 1000 milliseconds after the module is powered on Command 01LC20BB9 Response 01 Attempts to set the active delay time for the digital output of module 01 to OxOBB9 3001 milliseconds but the module returns a response indicating that the command was invalid because the value for the active delay time was not within the valid range Related Command Section 3 9 aaLC3 Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 3 9 aaLC3 Description This command is used to read the active delay time for the digital output of a specified module Syntax aaLC3 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF LC3 The command to read the active delay time for the digital output Response Valid Command laannnn CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF nnnn A four digit hexadecimal value representing the active delay time in milliseconds S
23. 4 W1 User Manual v1 01 Feb 16 2015 41 Examples Command 02 Response gt 0F01 Read the status of the digital output and digital input channels for module 02 and returns a response indicating that the command was valid and that the current digital output value is OF and the current digital input value is 01 denoting that both the digital output and digital input channels are ON Command 03 Response 703 Attempts to read the status of the digital output and digital input channels for module 03 and returns a response indicating that the command was invalid because module 03 does not exist Related Command Section 3 4 aa6 Section 3 15 aah Section 3 16 aaDl Section 3 17 aaDOhh Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 42 3 15 aah Description This command is used to set the value for all digital output channels of a specified module Syntax aah CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF h A single digit hexadecimal value representing the data to be written to the digital output channels where bit 0 3 of the value corresponds to channel RL1 RL4 When the bit is 0 it denotes that the digital output channel is set to OFF and 1 denotes that the digital output channel is set to ON Response Valid Command gt CHKS
24. C 4104 W1 User Manual v1 01 Feb 16 2015 33 Examples Command 01LC20BB8 Response 01 Set the active delay time for the digital output of module 01 to OxOBB8 3000 milliseconds and the module returns a response indicating that the command was valid The digital output will be active 3000 milliseconds after the module is powered on Command 01LC3 Response 010BBB Read the active delay time for the digital output of module 01 and returns a response indicating that the command was valid with a value of OBB8 meaning that the active delay time is 3000 milliseconds Related Command Section 3 8 aaLC2nnn Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 34 3 10 aaM Description This command is used to read the name of a specified module Syntax aaM CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF M The command to read the name of the module Response Valid Command aa data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data A string indicating the name of the module Examples Command 02M Response 02SC4104 Read the nam
25. Command O3RD Response 031E Read the response delay time for module 03 and returns a response indicating that the command was valid with a value of 1E 30 ms Related Command Section 3 35 aaRDhh Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 63 3 35 aaRDhh Description This command is used to set the response delay time for a specified module Syntax aaRDhh CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF RD The command to read the response delay time hh Response delay time range is from 00 1E in 1 ms intervals Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 03RD1E Response 03 Set the response delay time for module 03 to 1E 30 ms and returns a response indicating that the command was valid Command O3RD Response 031E Read the response delay time for module 03 and returns a response indicating that the command was valid with a value of 1E 30 ms Related Command Section 3 34 aaRD Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 64
26. DO 00274 10274 0 Enable 1 Disable EN 10321 DIP Switch Bit 0 10322 DIP Switch Bit 1 10323 DIP Switch Bit 2 10324 DIP Switch Bit 3 10325 Rotary Switch Bit 0 10326 Rotary Switch Bit 1 10327 Rotary Switch Bit 2 D D D D D D DD 10328 Rotary Switch Bit 3 Register Address Description Attribute 30001 Temperature Analog Input Channel R 30274 40274 Coordinate Function 0 7 refer to section 3 6 R W 30289 40289 Temperature Offset offset unit 0 1 R W 30481 Firmware Version Low Word R Firmware Version High Word 30482 Read 40482 and 40483 Response R 0x00 0x01 0x00 0x01 version 1 01 30483 Module Name Low Word R Module Name High Word 30484 Read 40483 and 40484 Response R 0x41 0x04 0x53 0x43 SC4104 Module Add 30485 40485 EE R W Valid Range 1 247 Module Baud Rat 30486 40486 C US Paue Kate SC R W See Section 2 6 Software Configuration Table Modbus Response Delay Time lt 30ms Valid Range 0x0000 0x001E ms 30488 40488 R W 30489 40489 Host watchdog timeout value 0 255 in 0 1s R W 30492 40492 Host watchdog timeout count write 0 to clear R W Module Boot Up Delay Time lt 3000ms Valid Range 0x0000 OxOBB8 ms 30498 40498 R W SC 4104 W1 User Manual v1 01 Feb 16 2015 67 4 2 Funct
27. Digital Output 4 LED as digital output indicator EMS Protection ESD 4 kV contact for each terminal EFT 1 kV for power and communication Power Requirements Input Voltage Range 10 30 Voc Consumption 2 4 W Max Connector RJ 11 6P4C or 6P6C 4 pin screw terminal Mechanical Dimensions W x Lx H 72 mm x 100 mm x 59 mm Installation DIN Rail Environment Operating Temperature 25 C 75 C Storage Temperature 30 C 80 C Humidity 10 to 95 RH Non condensing SC 4104 W1 User Manual v1 01 Feb 16 2015 2 3 Pin Assignments RL2 RL3 RL4 Won SC 4104 W1 RJ11 Pin Assignment Pin Description 1 VS Power Input 10 30 Vpc 2 VS Power Input 10 30 Vpc 3 DATA RS 485 Interface D 4 DATA RS 485 Interface D Front iew 5 GND Ground G 6 GND Ground Terminal Block Assignment Pin Description 1 DATA RS 485 Interface D 2 DATA RS 485 Interface D 3 VS Power Input 10 30 Vpc 4 GND Ground 2 4 Wire Connections DIO Wire Connections Relay ON Relay Off Drive Relay RL1 Drive Relay TC RL X RL COM RLX 08 SC 4104 W1 User Manual v1 01 Feb 16 2015 9 DI Read Back as 1 Power and Communication Connections Using Terminal Block Von Von VE SC 4
28. Form C type relay and 3 Form A type relay while the input channel is based on a sink type using a wire connection The input channel can be used to directly control the 4 channels relay ON and OFF sequence without requiring a remote host controller And the SC 4104 W1 support 7 kinds coordinated function for users select 4 kV ESD protection and 5000 Vrms intra module isolation are also provided When required communication with the SC 4104 W1 is programmable based on either the DCON or the Modbus RTU protocol and an added benefit is that different addresses can be set for DCON or Modbus RTU communication via hardware or software configuration Warning Do not use the SC 4104 W1 to connect to any device where the loading is greater than 160 W per channel as this may cause the module to malfunction SC 4104 W1 User Manual v1 01 Feb 16 2015 4 Features Cost effective for small FCU control module Power Relay Outputs Isolated AC Digital Input Support 7 kinds AC DI Input Direct Control Relay ON OFF Function 1 Channel Thermistor Temperature Sensor 40 C 80 C Easy installation Use fireproof materials UL94 V0 Level Low power consumption Support Modbus RTU and DCON Protocol Two RJ 11 Connector 6P4C or 6P6C Quick and easy wiring SC 4104 W1 User Manual v1 01 Feb 16 2015 2 Hardware Information 2 1 IO Specifications Digital Input
29. Input Channel 1 Type 90 240 Vac On Voltage Level 85 Vac Off Voltage Level 60 Vac Input Impedance 68 KQ 1W Isolation 5000 Vrms Local and remote direct control relay Function ON OFF and remote status monitoring Digital Output Output Channel 4 Type Power Relay 1 Form C 3 Form A Operating Voltage 250 Vac or 30 Voc Max Load Current 7 A NO 5A NC 250 Vac Recommend Working Current 1 A Operating Time Form C 10 ms Max Form A 10 ms Max Release Time Form C 5 ms Max Form A 10 ms Max Electrical Life 900 ops hr Form C 100 000 ops Form A 100 000 ops Mechanical Life 1800 ops hr Form C 10 000 000 ops Form A 5 000 000 ops Power on amp Safe Value Yes Programmable Temperature Sensor Temperature Channel 1 Type Thermistor Operating Temperature Range 40 C 80 C Temperature Tolerance nl SC 4104 W1 User Manual v1 01 Feb 16 2015 2 2 System Specifications Communication Interface RS 485 Data Format N 8 1 0 8 1 E 8 1 N 8 2 Hardware Configuration Fixed 9600 bps Baud Rate Software Configuration 1200 115200 bps Protocol Modbus RTU or DCON 128 159 for hardware configuration Node Address 0 255 for software configuration For Modbus RTU address 0 is auto become to 1 Connector RJ 11 4 pin screw terminal LED Indicators Power 1 LED as power indicator
30. SC 4104 W1 User Manual Warranty All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year beginning from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for any damage resulting from the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2014 ICP DAS Co Ltd All rights are reserved Trademarks Names are used for identification purposes only and may be registered trademarks of their respective companies SC 4104 W1 User Manual v1 01 Feb 16 2015 1 Contents 1 lt IRFOGUCHION wcscccscccdcccssteticcccccticccnteticcccccticceatetcccdccuteccdutetdcceccctvccenteavececeweue 4 2 gt Hardware Informatio ee 6 GN ER eet te E 6 2 2 System Specifications ici dcsencacdewadeaheacocslegenlec dines lcadideedenhieedeoes 7 Zoe Re ele WE EE 8 2 4 Wire COMME ctions cccccceeeeceeeeeeeceeeeeeeeseeeeeeeeeeeeeeaasseeeeeeeeeeneees 9 2 5 DIP Switch and Rotary Switch Configuration eeeeeeeeeeeeee 11 Schack WINER lee hg toe So td fa a a da 12 2 5 2 Hardware Configuration Mode 13 2 5 3
31. UM CR Invalid Command aa CHKSUM CR Ignored Command CHKSUM CR gt Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid Delimiter character to indicate that the command was ignored The module is in host watchdog timeout mode and the output is set to safe value Examples Command 023 Response gt Set channels RL1 and RL2 of module 02 to ON and the module returns a response indicating that the command was valid Related Command Section 3 4 aa6 Section 3 14 aa Section 3 16 aaDl Section 3 17 aaDOhh Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 43 3 16 aaDl Description This command is used to read the status of both the digital output and digital input channels and alarm status of a specified module Syntax aaDI CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF DI The command to read the digital I O and alarm status Response Valid Command laasooii CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF s Alarm status Now the parameter is reserved and got always 0 oo Digital output data Range is 00 OF ii Digi
32. aa The address of the responding module in hex format 00 to FF SC 4104 W1 User Manual v1 01 Feb 16 2015 38 Examples Command 01P1 Response 01 Attempts to set the communication protocol to be used for module 01 to Modbus RTU but returns a response indicating that the command was invalid because the module is not in INIT mode Command 01P1 Response 01 Set the communication protocol to be used for module 01 to Modbus RTU and returns a response indicating that the command was valid Related Command Section 3 11 aaP Related Topics Section 2 5 DIP Switch Configuration SC 4104 W1 User Manual v1 01 Feb 16 2015 39 3 13 aa Description This command is used to read analog input data of the module Syntax aa CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF Response Valid Command gt data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data Analog input value in engineer unit format Examples Command 01D Response 010 Read the temperature scale for module 01 returns a response indicating that the command was valid with a value of
33. cc ff Response Delimiter character The address of the module to be set in hex format 00 to FF The new address of the module in hex format 00 to FF The Type code which should be set to 40 for DIO modules The new Baud Rate see section 2 6 for details The module must boot up at INIT mode section 2 5 in order to change Baud Rates The command used to set the counter update direction and the checksum section 2 6 The module must boot up at INIT mode section 2 5 in order to change the checksum settings Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR aa Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid If an attempt is made to change the Baud Rate or Checksum settings without first connecting the INIT pin to the ground pin or without switching the rear slide switch to the INIT position the module will return a response indicating that the command was invalid The address of the responding module in hex format 00 to FF SC 4104 W1 User Manual v1 01 Feb 16 2015 18 Examples Command 0102400600 Response 02 Changes the address of module 01 to 02 The module returns a response indicating that the command was valid and includes the new address of the module Command 0101400A00 Response 01 Changes the Baud Rate of module 01 to 115200bps Th
34. d laard CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF r Rotary switch value range is from 0 F d DIP switch value range is from 0 F Examples Command O03RS Response 0331 Read module 03 switch value returns rotary switch value is 3 and DIP switch value is 1 Related Command None Related Topics Section 2 5 DIP Switch and Rotary Switch Configuration SC 4104 W1 User Manual v1 01 Feb 16 2015 62 3 34 aaRD Description This command is used to read the response delay time for a specified module Syntax aaRD CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF RD The command to read the response delay time Response Valid Command laahh CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF hh Response delay time range is from 00 1E in 1 ms intervals Examples Command 03RD1E Response 03 Set the response delay time for module 03 to 1E 30 ms and returns a response indicating that the command was valid
35. d Command data CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF data The status of the digital output and digital input channels represented by a four digit hexadecimal value followed by 00 The first two digits represent the status of the digital output channels and the second two represent the status of the digital input channels data Format Byte 1 Byte 2 00 Byte 1 Digital output data Range is 00 OF Byte 2 Digital input data Range is 00 01 00 Fix response end of the command SC 4104 W1 User Manual v1 01 Feb 16 2015 24 Examples Command 026 Response 0F0100 Read the status of the digital output and digital input channels for module 02 and returns a response indicating that the command was valid and that the current digital output value is OF and the current digital input value is 01 denoting that both the digital output and digital input channels are ON Command 036 Response 03 Attempts to read the status of the digital output and digital input channels for module 03 and returns a response indicating that the command was invalid because module 03 does not exist Related Command Section 3 14 Section 3 16 aa aaDI Related Topics None
36. e module returns a response indicating that the command was invalid because it is not in INIT mode Command 010140CA00 Response 01 Changes the Baud Rate of module 01 to 115200bps with 8 o 1 format and the module is in INIT mode The module returns a response indicating that the command was valid Related Command Section 3 2 aa2 Related Topics Section 2 5 DIP Switch and Rotary Switch Configuration Section 2 6 Software Configuration Tables Notes Changes to the address settings take effect immediately after a valid command is received Changes to the baud rate and checksum settings take effect on the next power on reset SC 4104 W1 User Manual v1 01 Feb 16 2015 19 3 2 aa2 Description This command is used to read the configuration of a specified module Syntax aa2 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 2 The command to read the configuration of the module Response Valid Command laattccff CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF tt The type code it should be 40 for the module cc The baud rate for the module See section 2 6 for details ff The checksum of the module See section 2 6 fo
37. e of module 02 and returns a response indicating that the command was valid and that the name of the module is SC 4104 W1 Command 03M Response 03 Attempts to read the name of module 03 and returns a response indicating that the command was invalid because module 03 does not exist Related Command None Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 35 3 11 aaP Description This command is used to read the communication protocol information for a specified module Syntax aaP CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF P The command to read the communication protocol information Response Valid Command laasc CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF s The protocols supported by the module 0 Only the DCON protocol is supported 1 Both the DCON and Modbus RTU protocols are supported c The current protocol that is saved in the EEPROM that will be used at the next power on reset 0 The protocol saved in the EEPROM is DCON 1 The protocol saved in the EEPROM is Modbus RTU SC 4104 W1 User Manual v1 01 Feb 16 2015 36 Examples Command
38. er Manual v1 01 Feb 16 2015 57 3 29 aa5P Description Set current digital output value as the power on value for a specified module Syntax aa5P CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 5P Command for setting current digital output value as the power on value Response Valid Command Invalid Command tlaa CHKSUM CR aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 01F Response gt Set module 01 digital output value to F and the module returns a response indicating that the command was valid Command 015P Response 01 Set current digital output value of module 01 as the power on value and returns success Related Command Section 3 25 Section 3 28 aa4 Section 3 26 aa5ppss Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 aa4P 3 30 aa5S Description Set current digital output value as the safe value for a specified module Syntax aa5S CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 5S Command for setting current digital output value as the safe value Response Valid
39. esponse Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 010 Response 0104 Read module 01 host watchdog status returns 04 host watchdog timeout flag is set Command 011 Response 01 Reset module 01 host watchdog status returns success Command 010 Response 0100 Read module 01 host watchdog status returns 00 host watchdog timeout flag is clear Related Command Section 3 20 Section 3 21 aa0 Section 3 23 aa2 Section 3 24 aa3ehh Section 3 25 aa4 Section 3 27 aa4S Section 3 28 aad5ppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 51 3 23 aa2 Description Read host watchdog activation and timeout interval Syntax aa2 CHKSUM CR aa 2 Response Delimiter character The address of the module to be read in hex format 00 to FF The command to read host watchdog activation and timeout interval Valid Command laaehh CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding
40. figuration and the new settings will be saved to the EEPROM SC 4104 W1 User Manual v1 01 Feb 16 2015 12 2 5 2 Hardware Configuration Mode When the SC 4104 W1 is powered on with both the SW4 and the SW2 DIP switches in the OFF position the module will be set to Hardware Configuration Mode In this mode the following configuration parameters are used Protocol Dependent on the position of DIP switch SW1 Refer to the Address Settings via Hardware Configuration table above Baud Rate Fixed at 9600 bps Data Format Fixed to N 8 1 Address In this mode any software command related to configuration will be ignored when using the Modbus RTU protocol or will return an error when using the DCON protocol 2 5 3 Software Configuration Mode When the SC 4104 W1 is powered on with DIP switch SW4 in the OFF position and DIP switch SW2 in the ON position the module will be set to Software Configuration Mode In this mode the configuration parameters to be used will be retrieved from the EEPROM The default configuration parameters stored in the EEPROM is Protocol Modbus RTU Address 01 0x01 Baud Rate 9600 bps Data Format N 8 1 In this mode the relevant commands can be used to change the configuration parameters and the new settings will be saved to the EEPROM SC 4104 W1 User Manual v1 01 Feb 16 2015
41. he digital output safe value Examples Command 014S Response 010300 Read module 01 safe value returns 03 Related Command Section 3 20 Section 3 21 aa0 Section 3 22 aa1 Section 3 23 aa2 Section 3 24 aa3ehh Section 3 25 aa4 Section 3 28 aadppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 56 3 28 aadppss Description Set power on value and safe value of digital output to a specified module Syntax aa5ppss CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 5 The command to set power on value and safe value of digital output pp The digital output power on value ss The digital output safe value Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 0150F03 Response 01 Set module 01 power on value to OF and safe value to 03 and returns success Related Command Section 3 20 Section 3 21 aa0 Section 3 22 aa1 Section 3 23 aa2 Section 3 24 aa3ehh Section 3 25 aa4 Section 3 26 aa4P Section 3 27 aa4S Section 3 29 aa5P Section 3 30 aads Related Topics None SC 4104 W1 Us
42. ion 01 Read Coils This function code is used to read the value at addresses Oxxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x01 02 03 Reference Address Refer to section 4 1 Address 0xxxx 04 05 Bit Count Number of bit B to read Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x01 02 Byte Count Response data byte N B 7 03 N 2 Bit Value Response bit data Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x81 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 68 4 3 Function 02 Read Discrete Inputs This function code is used to read the value at addresses 1xxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x02 02 03 Reference Address Refer to section 4 1 Address 1xxxx 04 05 Bit Count Number of bit B to read Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x02 02 Byte Count Response data byte N B 7 03 N 2 Bit Value Response bit data Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x82 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015
43. miter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF oo Temperature offset value in Hex format 00 7F is plus value 0 127 and FF 80 is minus value 1 128 The offset temperature unit is 0 1 Examples Command 01A3C0 Response 0106 Read the temperature offset value for module 01 returns a response indication that the command was valid with a value of 06 which demotes that the temperature offset is 0 6 Related Command Section 3 13 aa Section 3 18 aaA2CjToo Section 3 31 aaD Section 3 32 aaDt Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 48 9 20 Ar Description Host sends this command to all modules for broadcasting the information Host OK If the module waits the command timeout when enable WDT function The module will in host watchdog timeout mode and the output is set to safe value Syntax CHKSUM CR Delimiter character biy Command for all modules Response None Examples Command Response No response Send Host OK to all modules Related Command Section 3 21 aa0 Section 3 22 aal Section 3 23 aa2 Section 3 24 aa3ehh Section 3 25 aa4 Section 3 27 aa4S Section 3 28 aad5ppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015
44. module in hex format 00 to FF e Host watchdog activation O disable 1 enable hh Timeout interval in Hex format each count for 0 1 second ex 01 0 1 second and FF 25 5 seconds Examples Command 012 Response 011FF Read module 01 host watchdog activation and timeout interval returns 1FF host watchdog is enabled now and timeout interval is 25 5 seconds Related Command Section 3 20 Section 3 22 Section 3 25 Section 3 28 Ke Section 3 21 aa0 aa1 Section 3 24 aa3ehh aa4 Section 3 27 aa4S aa5ppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 52 3 24 aa3ehh Description Set host watchdog activation and timeout interval Syntax aa3ehh CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 3 The command to set host watchdog activation and timeout interval e Host watchdog activation O disable 1 enable hh Timeout interval in Hex format each count for 0 1 second ex 01 0 1 second and FF 25 5 seconds Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF Examples Command 013164 Response 01 Set module 01 enable ho
45. nated when the status of the digital input is changed 1 The ON OFF sequence of the digital output is coordinated when the status of the digital input is changed Examples Command 01LC1 Response 011 Read whether the operation between the digital input and the digital output is coordinated and the module returns a response indicating that the command was valid with a value of 1 meaning that the sequence of the digital output will be coordinated with function 1 when the status of the digital input is changed Related Command Section 3 6 aaLCOn Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 30 3 8 aaLC2nnnn Description This command is used to set the active delay time for the digital output of a specified module Syntax aaLC2nnnn CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF LC2 The command to set the active delay time for the digital output nnnn A four digit hexadecimal value representing the active delay time in milliseconds The maximum delay time is OxOBB8 3000 milliseconds Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF SC 4104 W1 User Manual v1 01 Feb 16 20
46. nd has been sent since the module was powered on which denotes that there has been no module reset since the last SAAR command was sent 1 This is the first time the SAAR command has been sent since the module was powered on SC 4104 W1 User Manual v1 01 Feb 16 2015 2 Examples Command 015 Response 011 Read the reset status for module 01 and returns a response indicating that the command was valid and that it is the first time the AA5 command has been sent since the module was powered on Command 015 Response 010 Read the reset status for module 01 and returns a response indicating that the command was valid and that there has been no module reset since the last SAAR command was sent Command 035 Response 03 Attempts to read the reset status for module 03 but returns a response indicating that the command was invalid because module 03 does not exist Related Command None Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 23 3 4 aa6 Description This command is used to read the status of both the digital input and digital output channels of a specified module Syntax aa6 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 6 The command to read the status of the Digital I O channels Response Vali
47. ode is used to set the power on value for the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x27 03 Power on Value 0x00 0x0F Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x27 03 Power on Value 0 OK Others Error Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 7 Sub function 40 Read Power on Value This sub function code is used to read the power on value for the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x28 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x28 03 Power on Value 0x00 OxOF Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 8 Sub function 53 Set Response Delay Time This sub function code is used to set the Modbus RTU response delay time for the SC 4104 W1 module
48. onse indicating that the command was valid with a value of 0 which denotes that the temperature scale is Celsius C Command 01 Response gt 026 40 Read the temperature analog value for module 01 returns a response indicating that the command was valid with a value of 026 40 which denotes that the temperature sensor indicated now is 26 4 C Command 01A2COT06 Response 01 Set the temperature offset to 06 and returns a response indicating that the command was valid Command 01 Response gt 027 00 Read the temperature analog value for module 01 returns a response indicating that the command was valid with a value of 027 00 which denotes that the temperature sensor indicated now is 27 C 26 4 0 6 Related Command Section 3 13 Section 3 31 aa Section 3 19 aaA3Cj aaD Section 3 32 aaDt Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 47 3 19 aaA3C j Description This command is used to read the temperature offset value of a specified module Syntax aaA3Cj CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF A3C The command to select temperature channel to read j Temperature input channel For SC 4104 W1 must be 0 Response Valid Command laaoo CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Deli
49. or Response SC 4104 W1 User Manual v1 01 Feb 16 2015 71 4 6 Function 05 Write Single Coil This function code is used to write a value to addresses OXxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x05 02 03 Reference Address Refer to section 4 1 Address 0xxxx 04 05 Output Value GE Output OFF 0x0000 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x05 02 03 Reference Address The same as byte 02 03 of request 04 05 Output Value The same as byte 04 05 of request Error Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x85 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 7 Function 06 Write Single Register This function code is used to write a value to addresses 4xXxxx Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x06 02 03 Reference Address Refer to section 4 1 Address 0xxxx 04 05 Output Value A word value Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x06 02 03 Reference Address The same as byte 02 03 of request 04 05 Output Value The same as byte 04 05 of request Error Response Byte Description
50. ponding module in hex format 00 to FF Examples Command 02DO0F Response aa Set channels RL1 RL4 of module 02 to ON and the module returns a response indicating that the command was valid Related Command Section 3 4 aa6 Section 3 14 aa Section 3 15 aah Section 3 16 aaDl Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 45 3 18 aaA2Cj Too Description This command is used to set the temperature offset value of a specified module Syntax aaA2CjToo CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF A2C The command to select temperature channel to set j Temperature input channel For SC 4104 W1 must be 0 T The command to set temperature offset value 00 Temperature offset value in Hex format 00 7F is plus value 0 127 and FF 80 is minus value 1 128 The offset temperature unit is 0 1 Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF SC 4104 W1 User Manual v1 01 Feb 16 2015 46 Examples Command 01D Response 010 Read the temperature scale for module 01 returns a resp
51. ponse SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 1 Sub function 00 Read Module Name This sub function code is used to read the name of the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x00 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x00 03 06 Module Name 0x53 0x43 0x41 0x04 SC 4104 Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015 4 10 2 Sub function 04 Write Module Address This sub function code is used to set the address of the SC 4104 W1 module Request Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function code 0x04 03 New Address 1 247 04 06 Reserved 0x00 0x00 0x00 Response Byte Description Value 00 Module ID 1 247 01 Function Code 0x46 02 Sub function Code 0x04 03 New Address 0 OK Others Error 04 06 Reserved 0x00 0x00 0x00 Error Response Byte Description Value 00 Module ID 1 247 01 Function Code OxC6 02 Exception Code Refer to section 4 Error Response SC 4104 W1 User Manual v1 01 Feb 16 2015
52. put data 3 13 Read all digital input output aa gt data 9 p R 3 14 data aah gt Set all digital output channels 3 15 Read digital I O and alarm aaDl laasooii S 3 16 status aaDOhh laa Set digital output states 3 17 AAA2CjTOO laa Set Temperature Offset 3 18 AAA3C j aaoo Get Temperature Offset 3 19 SS None Host OK notification 3 20 SC 4104 W1 User Manual v1 01 Feb 16 2015 aa0 laass Read host watchdog status 3 21 Clear host watchdog timeout aal laa 9 3 22 state aa2 laaehh Read host watchdog settings 3 23 aa3ehh laa Set host watchdog settings 3 24 Read power on and safe aa4 laappss a P 3 25 digital output values Read the power on digital aa4P laa data 3 26 output value Read the safe digital output aa4S laa data 3 27 value Set power on and safe digital aa5ppss laa 3 28 output values Set the current digital output aa5P laa 3 29 value as the power on value Set the current digital output aa5S laa 3 30 value as the safe value aaD laat Read temperature scale 3 31 aaDt laa Set temperature scale 3 32 aaRS laard Read rotary and dip switch 3 33 aaRD laahh Read response delay time 3 34 aaRDhh laa Set response delay time 3 35 SC 4104 W1 User Manual v1 01 Feb 16 2015 Sek aannttccff Description This command is used to set the configuration of a specified module Syntax aannttccff CHKSUM CR aa nn tt
53. r details SC 4104 W1 User Manual v1 01 Feb 16 2015 20 Examples Command 012 Response 01400600 Read the configuration of module 01 and returns a response indicating that the command was valid and showing that the Type code is set to 40 the Baud Rate is 9600 bps the Checksum is Disabled and the counter update direction is Falling Edge Command 032 Response 03 Attempts to read the configuration of module 03 but returns a response indicating that the command was invalid because module 03 does not exist Related Command Section 3 1 aannttccft Related Topics Section 2 5 DIP Switch and Rotary Switch Configuration Section 2 6 Software Configuration Tables SC 4104 W1 User Manual v1 01 Feb 16 2015 21 3 3 aa5 Description This command is used to read the reset status for a specified module Syntax aa5 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 5 The command to read the reset status of the module Response Valid Command laaS CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF 5 The reset status of the module 0 This is NOT the first time the comma
54. rrrrnne 72 4 7 Function 06 Write Single Hegtseter AAA 73 4 8 Function 15 Write Multiple Cosi 74 4 9 Function 16 Write Multiple Hegotsters AAA 15 4 10 Function 70 Read Write Module Setting AAA 76 4 10 1 Sub function 00 Read Module Name snnsnseeenenaennnnne 77 4 10 2 Sub function 04 Write Module Address nna000000110nn 78 4 10 3 Sub function 05 Read Communication Setting 79 4 10 4 Sub function 06 Write Communication Setting 80 4 10 5 Sub function 32 Read Firmware Version 81 4 10 6 Sub function 39 Write Power on Value ssss0000001110e 82 4 10 7 Sub function 40 Read Power on Value nnnssenaaaaaaaaeen 83 4 10 8 Sub function 53 Set Response Delay Time 84 4 10 9 Sub function 54 Read Response Delay Time 85 SC 4104 W1 User Manual v1 01 Feb 16 2015 3 1 Introduction The SC 4104 W1 is an easy to use smart control module It can be used in such as small FCU control system and small lighting control system SC 4104 W1 requires no specialist skills to install and operate and no software is needed in order to control the Digital Output channel CET SC 4104 W1 The SC 4104 W1 provides 1 channel for Digital Input photocouple isolation 4 channels for relay output and 1 channel for temperature sensor thermistor The output channel is 1
55. st watchdog and timeout interval is 64 10 0 seconds returns success Related Command Section 3 20 Section 3 21 aa0 Section 3 22 aa1 Section 3 23 aa2 Section 3 25 aa4 Section 3 27 aa4S Section 3 28 aad5ppss Section 3 30 aa5S Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 53 3 25 aa4 Description Read power on value and safe value of digital output for a specified module Syntax aa4 CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF 4 The command to read power on value and safe value of digital output Response Valid Command laappss CHKSUM CR Invalid Command aa CHKSUM CR l Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the responding module in hex format 00 to FF pp The digital output power on value ss The digital output safe value Examples Command 014 Response 010F03 Read module 01 power on and safe value returns power on value is OF safe value is 03 Related Command Section 3 20 Section 3 21 aa0 Section 3 22 aa1 Section 3 23 aa2 Section 3 24 aa3ehh Section 3 26 aa4P Section 3 27 aa4S Section 3 28 aa5ppss Section 3 29 aa5P Section 3 30 aads Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015
56. tal input data Range is 00 01 Examples Command 01DI Response 0100F01 Read the status of the digital output and digital input channels for module 01 and returns a response indicating that the command was valid and that the current digital output value is OF and the current digital input value is 01 denoting that both the digital output and digital input channels are ON Related Command Section 3 4 aa6 Section 3 14 aa Section 3 15 aah Section 3 17 aaDOhh Related Topics None SC 4104 W1 User Manual v1 01 Feb 16 2015 44 3 17 aaDOhh Description This command is used to set the value for all digital output channels of a specified module Syntax aaDOhh CHKSUM CR Delimiter character aa The address of the module to be read in hex format 00 to FF DO The command to set the digital output of the module hh A byte hexadecimal value representing the data to be written to the digital output channels where bit O 3 of the value corresponds to channel RL1 RL4 and others bit must be 0 When the bit is 0 it denotes that the digital output channel is set to OFF and 1 denotes that the digital output channel is set to ON Response Valid Command laa CHKSUM CR Invalid Command aa CHKSUM CR Delimiter character to indicate that the command was valid Delimiter character to indicate that the command was invalid aa The address of the res

Download Pdf Manuals

image

Related Search

Related Contents

STYLE Benutzerhandbuch  Bedienungsanleitung  天体の教材を作ろう    Fujitsu Keyboard USA SC B value  Mode d`emploi - Nord Keyboards  KLM - KLP  Hoja de Características SYON50  IS HLF07  MÓDULO MODBUS  

Copyright © All rights reserved.
Failed to retrieve file