CONTENT 1. PLC FUNCTION APPLICATION ..........3 1.1 PLC I NTRODUCTION ................................3 1.2 P RECAUTIONS OF USING THE FUNCTION ......................... 3 1.3 S YSTEM ONFIGURATION ................................ 4 1.3.1 Editing Tools SL-Ladder Developer ..........................4 1.3.2 Connect with computer configuration ..........................
1. PLC Function Application 1.1 PLC Introduction The PLC function built-in in SA3/SE3/SF3 series provides a simple programmable controller, It uses the Ladder diagram editing tools SL - Ladder Developer, with 21 basic instructions and 12 application instructions. 1.2 Precautions of using the PLC function When downloading PLC programs, please keep the communication frame format consistent with SL-Ladder ...
1.3 System Configuration 1.3.1 Editing Tools SL-Ladder Developer SL-Ladder Developer is a special editing software for PLC installed on Windows XP/win7/win8/win10 system. It supports programming in two languages, ladder diagram and instruction list. 1.3.2 Connect with computer configuration Please connect the inverter to the computer through 485 communication.
1.3.3 Program download Use "SL-Ladder Developer" software to write PLC programs. After the hardware connection is completed, the inverter is powered on and the parameters are modified (refer to 1.4.1 for related parameters) to set the communication format and communication protocol when downloading the program.
1.3.4 Keypad description When the PLC program is running, the keypad will have the following display. PLC status Display PLC state PU301(LED) PU301C(LCD) Show “PLC” PLC runs PLC stop...
1.4 Related Parameter Description 1.4.1 Parameter Description Number Name Setting Range Content Serial communication Baud P.32 rate for COM1 0~5(Note 1) 1:9600bps 2:19200bps Serial communication Baud P.812 rate for PU Communication protocol P.33 0: Modbus Protocol selection for COM1 1: Shihlin Protocol Communication protocol 2: PLC P.810 07-25 Communication Protocol P.810...
1.4.2 Communication configuration for Program downloads P.33 is set to 2 to select the communication protocol as PLC protocol. P.32 sets the baud rate to 9600bps or 19200bps. Other communication parameters are shared with Shihlin protocol. The default communication format of SL-Ladder Developer is 1,7,E,1.
1.4.4 Clear PLC internal storage Erase PLC program When the value of P.782 is written as 1, the inverter will clear the PLC program. After the clear is successful, the value of P.782 will be restored to 0, and the value of P.782 will not be restored to 0 if the clearing fails. The clearing procedure must be in the STOP state of the PLC, otherwise the clearing will fail.
1.5. PLC configuration 1.5.1 SA3 PLC specifications Item SA3 PLC function specifications Control method Repeated operation I/O control mode Refresh input and output Relay symbolic language (ladder) Programming language Function block Basic instructions No. of instructions Application instructions Basic instructions Several us Processing speed Application instructions...
1.5.2 SE3 PLC specifications Item SE3 PLC function specifications Control method Repeated operation I/O control mode Refresh input and output Relay symbolic language (ladder) Programming language Function block Basic instructions No. of instructions Application instructions Basic instructions Several us Processing speed Application instructions Dozens us Program capacity...
1.5.3 SF3 PLC specifications Item SF3 PLC function specifications Control method Repeated operation I/O control mode Refresh input and output Relay symbolic language (ladder) Programming language Function block Basic instructions No. of instructions Application instructions Basic instructions Several us Processing speed Application instructions Dozens us Program capacity...
1.5.4 I/O device corresponding description Input (X), output (Y) The input terminal is the port through which the PLC receives external switch signals. There are countless normally open and normally closed contacts that can be used indefinitely, but the input terminal cannot be driven by a program.
Page 14
Output terminal EB308R on EB308R on EB362R on EB362R on SA3 terminal number SLOT3 SLOT2 SLOT3 SLOT2 SO1-SE SO2-SE A1B1C1 A2B2C2 ABC10 ABC10 ABC11 ABC11 ABC12 ABC13 ABC14 ABC15 ABC16 ABC17 ABC10 ABC10 ABC11 ABC11 ABC12 ABC13 ABC14 ABC15 ABC16 ABC17...
Page 15
SE3 Built-in PLC terminal Input terminal SE3 terminal EB362R terminal number Note: When the M2 terminal is used as an embedded PLC input terminal, the value of P.82 cannot be 41,54,57, otherwise it will be abnormal if M2 is used as an input terminal. Output terminal:...
Page 16
SF3 Built-in PLC terminal: Input terminal SF3 terminal EB362R terminal number Note: When HDI terminal is used as input terminal, the value of P.550 cannot be 41,54,57, otherwise HDI will be abnormal when used as input terminal. Output terminal: ...
1.5.5 Device function specification Auxiliary relay (M) There are many auxiliary relays in PLC, they can be divided into general, power off keep and special three categories, the address code of auxiliary relay is according to decimal code. Specific configurations are as follows: General 160 points,M0~M159...
Page 18
As shown in the figure above, the current value of C0 will increase by 1 once X11 ON->OFF. When the count value reaches K10, the C0 contact will act and Y0 will be output. After X1 triggers C0 again, it will not accumulate and stay at K10.
1.5.6 Special M relay function description Special auxiliary relays are auxiliary relays with a certain meaning. Do not use undefined special auxiliary relays. The specific contents are as follows: Number Name Description M8000 RUN monitoring This contact is On when running M8001 RUN monitoring This contact is Off when running...
Page 20
M8057 Status Monitoring (ALARM) Alarm occurred M8059 Custom status output Monitor the output selected by D8059. M8060 High-speed input count start After setting, start high-speed input pulse counting. High-speed input count After setting, the high-speed input count value is reset M8061 value clear to zero.
1.5.7 Special D registers function description The special purpose data register refers to the data register whose purpose has been defined. The special data registers of the built-in PLC are defined as follows: number Name Note D8001 PLC signal and system version information Read PLC version D8002 Memory capacity...
Page 22
D8052 Output current monitoring Monitor output current, unit 0.01A D8053 Output voltage monitoring Monitor output voltage, unit 0.01V D8054 Alarm record 1, 2 Surveillance alarm 1, 2 D8055 Alarm record 3, 4 Surveillance alarm 3, 4 Monitor 2-5 terminal analog input, D8056 2-5 terminal analog input The smallest unit is 0.1%, and the range is...
Page 23
Electronic relay heat accumulation rate D8141 The smallest unit is 0.01% monitoring D8142 Output power monitoring The smallest unit is 0.01KW Temperature rise accumulation rate D8143 The smallest unit is 0.01% monitoring D8144 NTC temperature accumulation monitoring The smallest unit is 0.01℃ D8145 Motor electronic heat accumulation rate The smallest unit is 0.01%...
Page 24
Only P parameter can be operated. The number of D-1000 is the P parameter D1000~ Corresponding to the value of P.0~P.1299 number. M8030 decides whether the D2299 setting of P parameter is saved after power-off. (Note 2, 3) Note: 1. HDI terminal can only be used by PLC when M8060 and M8061 are referenced by PLC program and PLC is valid.
1.5.8 Analog output P.54 is set to 13, the output of AM1-5 is controlled by PLC. M8049 ON AM1-5 output starts. OFF output stops. P.64 controls the signal type (voltage or current and range) output by AM1-5, switch SW3 is set to output voltage from AM1-5, and switch SW3 is set to output current from AM1-5.
PLC 配置 1.5.9 Analog input M8058 ON analog input monitoring starts. OFF input monitoring stops. P.73 sets the analog input range of terminals 2-5 (the minimum unit is 0.1%, the range is -100~100%, the range corresponding to the percentage is set by P.73). P.73 Range Percentage...
1.5.10 Pulse train input function M8060 is a start command for the built-in PLC high-speed input counting function. M8061 is a built-in PLC high-speed input count clear command. D8060 is the low 16 bits of the built-in PLC high-speed input count value. D8061 is the high 16 bits of the built-in PLC high-speed input count value.
2. Command function description The built-in PLC has 21 kinds of basic instructions and 12 kinds of application instructions. 2.1 Basic instructions Basic instruction list Basic instruction specification Command Device used Number range Ladder diagram Command description Normally open contact X、Y、M、T、C Normally closed contact X、Y、M、T、C...
Page 29
Basic instruction specification Ladder diagram Command explanation instruction Use device Number range PLC program end character None Coil on hold Y、M None Coil on clear Y、M Detailed explanation of basic instructions Command Function Connect the contacts to the bus bar. It is used for the logic line starting with a normally open contact. Operand Ladder:...
Page 30
Command Function Used for the series connection of normally closed contacts. Perform an AND operation between the current state of the serial connection point and the logical result before the connection point, and store the operation result. Operand Ladder: Command: OUT Y0 Command Function...
Page 31
Command Function Connect the contacts to the bus bar. It is used to trigger the logic line of the start of the contact on the rising edge. Operand Ladder: Command: LDP X0 OUT Y0 Command Function Connect the contacts to the bus bar. It is used to trigger the logic line at the beginning of the contact at the falling edge.
Page 32
Command Function Used for falling edge trigger contacts to connect in series. Perform an AND operation between the current state of the serial connection point and the logical result before the connection point, ANDF and store the operation result. Operand Ladder:...
Page 33
Command Function This instruction has no operands. During calculation, the calculation result before the contact and the current parallel circuit result are "ANDed". Operand None Ladder: Command: OUT Y0 Command Function This instruction has no operands. During operation, the result of the previous operation and the result of the current series are ORed.
Page 34
Command Function Put the connection point data into the stack, and use the MPS instruction once to send the current intermediate result into the first layer of the stack. Move the data that originally existed in the first layer down one layer. Read the top data of the stack.
Page 35
Command Function The reset command resets the coil (set to 0). Operand Ladder: Command: RST Y0 RST Y0 Command Function PLC program end character Operand None Ladder: Command:...
2.2 Function instruction Detailed function instructions Classification FNC NO.( Decimal) Instruction Symbol Function Description Number of parameters compare Transmission Interval comparison comparison Send BMOV Batch send Binary addition operation Binary subtraction operation Binary multiplication Arithmetic operation Binary division operation Binary plus 1 operation Binary minus 1 operation Rotate right Rotation...
Page 37
Flag bit: none : The lower limit of the area comparison. : The upper limit of the area comparison. : Comparison value. : Comparing results. The value of must be less than the value of . The result of the comparison is shown by If the target points to M0, it will automatically occupy M0~M2.
Page 38
Flag bit: none :data. :Data storage destination address. The instruction sends the data to the destination address. The data in will not change if the instruction is not executed. The content of D0 will not change when X0 is OFF. K10 is transferred to D0 when X0 is ON. Flag bit: none :The data source starts.
Page 39
Flag bit: M8020 0: The result of addition and subtraction is not 0. 1: The result of addition and subtraction is 0. :Addend. :And. : The summand.。 and send the sum to . The numbers participating in the operation are all unsigned 16-bit binary numbers.
Page 40
X0 is ON, the number in D0 is subtracted from the data in D10, and the difference is stored in D20. If the difference obtained is zero, M8020 will be set to 1. Flag bit: None. : The multiplicand. : Multiplier. : Product.
Page 41
: The dividend. : Divisor. : Quotient. The quotient obtained by dividing is stored in . The data involved in the operation are all unsigned 16-bit binary numbers. Only the integer part of the quotient is stored in and the remainder is not stored. When the divisor is 0, M8023 is 1. When X0 is ON, the data of D0 is divided by the data of D10, and the quotient obtained is stored in D20.
Page 42
: The target operand. If the point before DEC is not a pulse, it will be automatically decremented by 1 for each scan period This command generally uses pulse type execution command The DEC instruction has only one operand and does not affect the zero flag. The calculated data is an unsigned 16-bit binary number.
Page 43
Flag bit: None. : The device to be moved. : The number of bits shifted to the left. Shift the contents of the device pointed to by to the left by bits. The number of operations is an unsigned 16-bit binary number. This command generally uses pulse-type execution commands.
3. Communication application note 3.1 Modbus communication protocol The embedded PLC supports Modbus RTU and Modbus ASCII protocol for communication to read and write software devices. Modbus address of bit soft device is divided into group address and address. The operation of the group ...
Page 45
Command codes available for communication with PLC Command code Function Operation method Suitable for Bit operation, single 0x01 Coil status reading Y,M,T,C read/multiple read Bit operation, single 0x02 Input status read X,Y,M,T,C read/multiple read X, Y, M, T, C, D, T current Word operation, single 0x03 Read single data...
Page 46
Command: 01 05 30 A4 FF 00 C2 D9 Reply: 01 05 30 A4 FF 00 C2 D9 Mandatory M100 OFF Command: 01 05 30 A4 00 00 83 29 Reply: 01 05 30 A4 00 00 83 29 Analysis: Write the value 0XFF00, that is, the status of the bit soft device operated by the command is ON, that is, the value is 1.
3.2 PLC communication protocol PLC communication protocol is selected when P.33 is set to 2, P.48~P.50 set the communication format, P.32 selects the communication baud rate. PLC protocol is a special protocol for PLC program download and communication between embedded PLC and Shihlin HMI. Currently Shihlin HMI EC200 series supports this protocol.
Page 48
Appendix I The embedded PLC can be used with Shihlin's HMI to read PLC ladder diagrams and instruction lists, modify instruction lists, and monitor PLC operation. The figure below shows the RS232, RS422 and RS485 pin definitions of Shihlin HMI serial port.
Need help?
Do you have a question about the SA3 Series and is the answer not in the manual?
Questions and answers