meta data for this page
Action unknown: siteexport_addpage

uPLC

Introduction

The internal u-PLC is used to connect the external world (inputs/outputs) with the world of the parameters of the integrated drive NLi linear motor. The PLC can be used to copy digital input to a binary parameter, to copy a binary parameter to a digital output and to execute mathematical and Boolean operations. The PLC program must be inserted as a list of instructions by using the keyboard or by the serial line using a PC and an interface program. A PLC program written to meet the needs of a large number of applications corresponds to the default parameters. In most cases it is not necessary to program the PLC itself. The main features of the uPLC are:

  1. 64 program steps
  2. 6msec of fixed scanning time
  3. 2 timers
  4. 15 different instructions
  5. stack depth equal to 1
  6. mathematical operations 16 / 32 bits

uPLC feature is available using Firmware version >= 5E41

Please note that when the uPLC is running the 3 digital ouputs are under control of the PLC program !
So, the PLC program can associate every events to these 3 digital outputs instead of the standard options.

PLC instructions

Symbol Instruction Parameter Comment
sim_1.jpgLDPa,yloads the y bit of the Pa parameter on the stack
sim_2.jpgLDnPa,yloads the negated y bit of the Pa parameter on the stack
sim3.jpgOUTPa,ysets the y bit of the Pa parameter to the value loaded on the stack
sim4.jpgOUTnPa,yplaces the y bit of the Pa parameter to the value of stack negating it
sim5.jpgSETPa,yif the stack = 1, the y bit of the Pa parameter is set to 1
sim6.jpgRESPa,yif the stack = 1, the y bit of the Pa parameter is set to 0
sim9.jpgANDPa,yif the bit loaded on the stack contains the result of the logical AND operation between itself and the y bit of the Pa parameter
sim10.jpgANDnPa,ythe bit of the stack contains the result of the logical AND operation between itself and the y bit of the negated Pa parameter
sim9.jpgORPa,ythe bit loaded on the stack contains the result of the logical OR operation between itself and the y bit of the Pa parameter
sim10.jpgORnPa,ythe bit on the stack contains the result of the logical OR operation between itself and the y bit of the negated Pa parameter
sim11.jpgADDPa,Pb,Pcif the bit on the stack = 1, the addition operation is executed on the parameters in which: Pc = Pa + Pb
sim12.jpgSUBPa,Pb,Pcif the bit on the stack = 1, the subtraction operation is executed on the parameters in which: Pc = Pa – Pb
sim13.jpgMULPa,Pb,Pcif the bit on the stack = 1, the multiplication operation is executed on the parameters in which: Pc = Pa ⋅ Pb
sim14.jpgDIVPa,Pb,Pcif the bit on the stack = 1, the division operation is executed on the parameters in which: Pc = Pa / Pb. If Pb is equal to 0 the division operation is not executed
sim15.jpgEND end of program