1.7.14 Memory areas COMx_SEND and EXP1_SEND ....46 1.7.15 Memory areas COMx_RECEIVE and EXP1_RECEIVE ..46 1.8 Modbus RTU slave communication protocol ........47 1.9 Addresses word/bit of PL260 for protocol Modbus RTU ....48 2 PL260 Ladder programming ..........53 2.1 Introduction ..................53 2.2 Elements of Ladder programming ............
Page 4
2.2.6 Mathematical formule FM function ..........55 2.2.7 Assignement function MOV ............56 2.2.8 Assignement function BLKMOV ..........56 2.2.9 Indexed Assignement Function MOVIND ......... 56 2.2.10 Assignement function MOVTXT ..........56 2.2.11 Contacts II immediate digital inputs ........56 2.2.12 Immediate outputs QI ..............
1 Acquisition and actuation module PL260 1.1 Introduction The PL260 is a compact PLC for the acquisition of analogue and digital signals and the execution of complex mathematical functions. One of the most important features on PL260 is the logic blocks, which allow simple management of complex operations.
PLC is in RUN mode and is executing the instructions programmed by ladder language. • Slowly flashing 0,5 s on / 0,5 s off) PL260 is used as I/O module (no ladder program loaded). • Fast flashing (0,2 s on / 0,2 s off) only boot program is loaded...
First encoder input uses hardware inputs I1 and I2. Second encoder input uses hardware inputs I3 and I4. If encoder inputs are used, the relevant digital inputs are not available. Max. frequency for encoders is 25 KHz if not used contemporarily, 15 KHz if both inputs are used contemporarily. On PL260-12AD.
I1÷I16, to activate inputs. Voltage available on these pins can supply sensors to connect to the analogue inputs (N.B.: on these pins the available supply is Vcc, not stabilized!). PL260-11AD: input for bidirectional encoder no. 1 (phase A) I1 / A1...
Page 10
1 signal Zero, or input for bidirectional encoder 15 I3 / Z1 / A2 Digital input To activate digital no. 2 phase A. inputs, switch terminal +V to the PL260-12AD: input for input terminal. fast counter no. Input bidirectional 2 (phase I4 / B2 Digital input encoder no.
Page 11
CANL/TX Signal CAN- or TX (RS232) interface CAN or RS232 Ref. signal for serial EXP1 N° Name Description COM1 PL260 RS485 plug-8 4 - COM1-A RS- (MORS . 32) COM1 RS 485 2 - COM1-C RS REF (MORS . 33) PLUG 1 - COM1-B RS + (MORS .
1.5.2 Connection of sensors to analogue inputs Below some examples of connection for common sensors to the analogue inputs of the PL260. 0-20mA 0-10V 4-20mA 0-20mA (21) (21) 2 wires 4-20mA 3 wires PT 100/NI100 a 3 fili...
PL260. SIGNAL SUPPLY SHIELD Weight Cell As showed in the figure, to connect a load cell to the PL260 it is necessary to: • Create the voltage (max 5 Vdc) to supply the cell through the analogue output AQ4. •...
Z optional) which can be connected to the PL260 inputs. + V (21) 1.5.5 Connect PL260 to RS485 Below an example of connection for more modules PL260 to RS485 line for the communication with a master device. + - REF...
1.6 Setting dip-switch PL260 is provided with internal dipswitches, which allow the user to configure the analogue inputs, to select the serial interface EXP1 to be connected to terminals, to select the device address and other plc functions. WARNING: All hardware configuration procedures must be done with PL260 switched off.
1.6.2 Setting dip-switch to select analogue input AI1..4 Each analogue input can be configured through a 4 way dip-switch, the correspondence between the inputs and the relative dip-switch is showed in the figure below: To obtain the required input type, it is necessary to set the relative dip-switch as indicated in the table below: Input type Dip-switch...
Page 17
Input type Dip-switch Notes 0..20 mA Connect the positive signal to the analogue input and the eventual reference pin to the power-supply digital ground (pin 2). 4..20 mA Connect the thermocouple positive signal to the analogue input, and the negative to K, S, T, R, J, E the AI-COM pin.
1.6.3 Setting dip-switch to select analogue intput AI5..6 Analogue inputs AI5..AI6 are generally selected (reset setting) through SMW44 and SMW45 as "Disabled". They can be configured as 0..10V 10 bit only if inputs AI1 and AI2 have not yet been selected as 0..10V 10 bit. AI5 uses part of the hardware of AI1, while AI6 uses part of the hardware of AI2.
Page 19
Figures below show the settings for dip-switch to configure analogue input AI6. Input AI6 Dip-switch Notes Analogue input AI6 is disabled Disabled and input I8 is used as digital input. Connect positive signal digital input 0..10V 10 bit reference signal to pin -VDC (2).
The address is given as follows: MODULE ADDRESS = ADDRESS OFFSET + DIP-SWITCH COMBINATION The offset address, value stored on PL260 memory (default "1"), can be modified by writing on SMW4 word. Dip-switch combinations are:...
1.7 PL260 memory areas The PL260 module provides the user with memory areas where it is possible to read or write program data. Memory areas can be entered by instruction with access by single bit (B), by word (W) or double word (D).
1.7.2 Memory area “special marker SM” This area is the memory which contains all data used by the ladder program to interact with the hardware resources of PL260. Some of this data is initialized when starting the PLC with the default values described in the table below.
Page 23
Mod. SM n° Description / meaning word 1000 Status bit Bit 0 RUN/STOP bit (1=run). At starting this bit is always forced to ON, obtaining the RUN mode of PLC. In STOP mode, the relay outputs of PLC are disabled. Bit 1 This bit is always ON for first scanning cycle of main program.
Page 24
Bit 10 If set to ON this bit enables mode “modem” for serial port EXP1. This means that Timeout between character other character in receiving mode is automatically set to 40mS. Bit 11 If set to ON this bit enables mode “modem” for serial port COM2.
Page 25
Bit 12 This bit is ON if the analogue AI1 input is out of range. Bit 13 This bit is ON if the analogue AI2 input is out of range. Bit 14 This bit is ON if the analogue AI3 input is out of range.
Page 26
OFF at the end of the operation. 1004 PL260 protocol address offset This word contains the PL260 protocol address offset. Its value is added to the one obtained combining the selection dipswitch addresses (see paragraph 1.6.3). At start it is fixed to 1.
Page 27
1006 Cycle time This word gives the time of the program last scanning cycle (resolution 100 µS). 1007 Min. cycle time This word gives the min. time of the program last scanning cycle (resolution 100 µS). 1008 Max. cycle time This word gives the max.
Page 28
SM23 1023 Counts of bidirectional counter encoder 2 (low area) Only for PL260-11AD These two pairs of words contain the value of bidirectional counters for encoders 1 and 2. Counting is stored also if there is a power failure and it is automatically updated at each program scanning.
Page 29
Data will be accepted only when the filter will have cancelled noises and fixed inputs lines on stable values. PL260 supports filters with delay time between 0 and 50 ms.
Page 30
SM39 1039 Analogue input filter (default 5 means) A filter may be applied to the signals of analogue inputs, selecting the number of values to consider in the average for the rating of final input value/ to exclude software filter (means) for each input/ to exclude control function which automatically rejects wrong conversions.
Page 31
1040 SM40 Analogue input AI1 configuration 1041 SM41 Analogue input AI2 configuration 1042 SM42 Analogue input AI3 configuration SM43 1043 Analogue input AI4 configuration SM44 1044 Analogue input AI5 configuration SM45 1044 Analogue input AI6 configuration These special marker words define the type of sensor connected to analogue inputs AI1...AI6 (select the jumpers correctly to configure the inputs).
Page 32
1046 SM46 Min. value for Analogue input AI1 linear 1047 SM47 Min. value for Analogue input AI2 linear 1048 SM48 Min. value for Analogue input AI3 linear SM49 1049 Min. value for Analogue input AI4 linear SM50 1050 Min. value for Analogue input AI5 linear SM51 1051 Min.
Page 33
SM73 1073 Min. value for analogue output AQ1 SM74 1074 Min. value for analogue output AQ2 SM75 1075 Min. value for analogue output AQ3 SM76 1076 Min. value for analogue output AQ4 These words define the value of the software analogue output AQx which corresponds to 0V on the physical output.
Page 34
1086 SM86 SETUP register for converter A/D (default 10) This special marker allows to change some settings of the internal digital analogue converter. This register is managed by bit, and not all of them can be modified. Bit 7÷ ÷ ÷ ÷ 5 Not used, keep it to “0”...
Page 35
SM87 1087 Register MDEC1 converter A/D (default 64) This special marker allows to change some settings of the internal digital analogue converter. This register is managed by bit, and not all of them can be modified. Bit 7 Not used, keep it to “0” Conversion format Bit 6 bipolar...
Page 36
500 * 0,2ms = 100 ms) Value selected for this word defines the min. interval time (resolution 0,2 ms) between two consecutive transfer of control characters from the PL260 to the expansion modules, to determinate the correct functioning (range 500...5000).
Page 37
SM99 Can modules management flag ( default 0) Bit 0 This bit defines if the PL260 transmits data to the expansion devices only at regular intervals (defined by SM98) or also at each variation of them. OFF data transmission only at time...
Page 38
SM100 1100 Serial COM1 status SM110 1110 Serial EXP1 status SM120 1120 Serial COM2 status These words define the status of communication serials COM1, EXP1 and COM2. Each bit of each word signals a condition of missing communication (off-line) or an error for each transmitted/received data instructions COM_1÷16 EXP_1÷16...
Page 39
SM101 1101 Serial baudrate COM1 (default 9600 baud) SM111 1111 Serial/canbus baudrate EXP1 (default 9600 baud) SM121 1121 Serial baudrate COM2 (default 19200 baud) Value selected into this word defines the serial port communication speed 110 baud 4800 baud 150 baud 9600 baud 300 baud 19200 baud...
Page 40
(def. 0ms) With slave protocol this word defines min. delay between end of data receiving from master device and the start of answer transmission form PL260 (max. 100ms). With master protocol this word define max. waiting between start of query transmission from PL260 and full receiving of answer from slave device.
Page 41
SM108 1108 COM1 configuration in free-port mode SM118 1118 EXP1 configuration in free-port mode SM128 1128 COM2 configuration in free-port mode These words enable functioning of serial port in free- port mode, selecting also functioning parameters. Enabling this mode, communication protocol which uses the serial is disabled and so it is possible to access directly the transmission/reception of data on port.
Page 42
1134 Counts of bidirectional counter encoder 5 (high part) SM135 1135 Counts of bidirectional counter encoder 5 (low part) Only for PL260-12AD These three pairs of words contains value of fast counters 3,4 and 5. The count is kept also in case of power failure and it is updated automatically at each program scanning.
Page 43
Loading value for encoder 3 counter (high part) SM137 1137 Loading value for encoder 3 counter (low part) Only for PL260-12AD These two words contain value in counts which is loaded on the counter of encoder 3 when loading bit SM2.8 is selected to "1".
The area consists of 8 words. The first one is transferred to the outputs of PL260 at the end of each cycle, the other ones may contain the status of further outputs to write via serial communication to an expansion module.
1.7.8 Memory area "timer T" This memory area contains timer values. If timer is enabled, the value contained into this area will increase or decrease according to the type of timer, with the resolution chosen at the starting of timer. 1.7.9 Memory area "preset timer PT"...
Memory is Eeprom, therefore access to this area is slower than access to area V and SM. PL260 does not check integrity of data saved in this area. This area is divided in words (0÷12999) and can also be entered by Modbus protocol.
1.8 Modbus RTU slave communication protocol Module PL260 is conceived for the use with SCADA systems or Operator panels via Modbus protocol RTU. Serial communication enables reading and modifying of data on available memory areas, entering and visualizing any data concerning the PLC. Module PL260 is provided with 3 serial...
The following tables give all data (word and bit) which may be entered via Modbus protocol. For all data the table gives reading/writing elements and the value assumed at starting of PL260. According to initialization value at starting, the following options are given: 1.
2.2.1 Contacts digital inputs I Contacts I contains the state of digital inputs of PL260 and of one more expansion module. The N.O. contact is closed (on) when bit value is 1 (active input). The N.C. contact is open (on) when bit value is 0 (input not active).
2.2.3 Bistable relays B 64 bistable relays are available on PL260. Each consists of one coil and the relevant logic contact N.O. and N.C. . Energizing coil “B”, the relevant logic contact will change its state (it opens if previously closed, it closes if previously open). The N.O. contact is closed (on) when bit value is 1.
activated with time basis 10 ms, 100ms and 1s. Each counting of actual value is multiple of time base. Example a counting of 50 in a timer with time base 10 ms is equals to 500 ms. Preset time (PT) can be directly loaded with a value or by means of a variable in the area VW, SMW, AI , TR.
The operators can be numeric or they may also refers to available memory areas. 2.2.7 Assignement function MOV The function MOV allows to assign to the specified memory location a numeric value or a value assumed by another memory location. 2.2.8 Assignement function BLKMOV The function BLKMOV allows to assign to the memory block a numeric value or the value assumed by another block of memory locations.
2.2.12 Immediate outputs QI By means of direct access to outputs Q, PL260 allows to directly work on outputs Q during the ladder program execution, even without waiting the end of program. The command is allowed only on hardware outputs of PL260 (QI1..QI16).
RANGE( AI1, Min 10, Max 200) For analogue input AI1 the function defines the minimum limit as 10 and the maximum limit as 200. In case that analogue input AI1 would be connected to a potentiometer to fix a preset time (PT) of a timer with time- base 100ms, the result would be a variable time between 1.0 and 20.0 seconds, according to the position of potentiometer.
2.2.18 Contact P and N The contact “positive transition P” activates the current flow for a single scanning cycle at each transition Off / On. The contact “negative transition N” activates the current flow for a single scanning cycle at each transition On / Off.
Page 60
Address Contents area VD Encoder counts Counts setpoint value of positioning Counts maximum positioning error Time required to reach max. speed (tenth of seconds) Status positioning output (0=stop, 1=onwards, 1=backwards) Counts of inertia onwards Counts of inertia backwards Duration minimum impulse (resolution 0.2 mS) Counts of displacement after impulse of 100 mS Counts of displacement after impulse of 500 mS Counts of displacement after impulse of 1000 mS...
These functions are active only when in the project a master communication protocol has been selected for the relevant serial port. A Master protocol means a protocol which enables the PL260 to control the serial line communication, controlling the data flow towards slave devices.
Page 62
• Reading/Writing: PL260 will read data on slave device and will store them in an internal memory area; when these internal data on PL260 will be modified by the program, any change will be automatically sent also to slave device by means of a writing instruction (this instruction can work only on a single data each time).
Page 63
N.B.: On PL260-XX protocol, only elements underlined in grey are enabled (the other elements have not to be used!). The example below describes setting for an "EXP" instruction to write on the plc with "1" of 8 consecutive...
This function is activated only when for the serial port EXP1 on the project the communication protocol EXP-I/O-CANBUS is selected. This protocol allows PL260 to take the control of the CANbus communication line, controlling data flow towards slave devices.
Page 65
The table below summarizes, for each type of device which can be connected to the PL260 expansion bus, how many I/O or variables V it takes into the plc internal memory.
Page 66
The table below summarizes the addresses of the areas reserved to I/O devices, according to their communication address: Addr. 17-32 17-32 7-10 200-209 33-48 33-48 11-14 9-12 210-219 49-64 49-64 15-18 13-16 220-229 65-80 65-80 19-22 17-20 230-239 81-96 81-96 23-26 21-24 240-249...
2.2.23 Functions StartPID , PID , SetOutPID Functions StartPID, PID and SetOutPID enables control of a process by means of PID algorithm (proportional, integral, derivative). Function StartPID starts the relevant control block and sets parameters as required. Function can be activated once at the starting or it may be recalled later to modify quickly control parameters.
It allows to set the value of PID output, automatically rating the single percentages of proportional and integral action. Changing from manual to automatical operation, PID output will assume the value entered in manual function and it will start control action. Consequently the function must be used only in manual control, to keep PID output in line with value of manual control.
AQ2, so that value of counts for encoder 1 will be equal to selected setpoint. Value of action “F” will be added to the output value rated by PID (max +/-10000). Keeping value of action “F” to 0 a zero, this action will not affect regulation.
Page 70
Enter on location VD+8 the duration of accelaration ramp (expressed as time units; if duration of acceleration ramp must be 1 second and function GENSET is recalled by an interrupt of 1 ms, enter 1000) Enter on location VD+10 the duration of deceleration ramp. Write “1”...
2.2.26 Function CONV The function CONV provides the conversion of source data in one of the available formats. Conversion type “TO_7SEG_SIGNED” converts input data (one word with sign -32768..32767) in a specified number of digits alredy suitable for a display with 7 segments. The number of digits to convert, starting from less significant digit, will be sent to the function as parameter.
Need help?
Do you have a question about the PL260 and is the answer not in the manual?
Questions and answers