cli:franke:nis_visual

Visual Management and touch panels view - through Agents

AgentVisual is an AgentBase that implements an ask for answering "Visual Management" requirements.

We should define before the "Shift definition" tables. Following tables schema



For identifying the shift we should use the tables TURNI and TURNIDEF. Each production line / machine should be mapped to shift code; table TURNIDEF defines details of each shift.

Following an example of table TURNI



Following an example of table TURNIDEF

  • TURNI.DEF=1 identifies the code of shift automatically assigned to each line that is not mapped explicitily to a shift;
  • TURNIDET.ORAINSEC is the number of seconds from mind-night from which the shift begins
  • TURNIDET.DURATA is the duration in seconds of the shift

Following a general schema for data required by a single line:

Field NameField Description
codartProduct code
descrizioProduct description
codopWork order
tmTakt Time
nppNumber of pieces expected from the begin of the shift or from the begin of WO
npNumber of pieces produced from the begin of the shift or from the begin of WO
nptTotal of pieces produced for work-order
sNumber of scrapt items in the shift
oeeOEE in the shift
rfRF, RV, RQ in the shift
rvRF, RV, RQ in the shift
rqRF, RV, RQ in the shift
stateState of line/machine (1=running/0=stop)
causafmCause of current stop
caudescDescription of current stop
tmfmTM of beginning stop
tpfmClass of current stop machine F=generic stop,S=Setup,O=Organizational,P=Pause
npwoNumber of items required from WO



The following data refers to a specific production line / machine

Field NameField Description
codartProduct code
descrizioProduct description
codopWork order
tmTakt Time
nppNumber of pieces expected from the begin of the shift or from the begin of WO
npNumber of pieces produced from the begin of the shift or from the begin of WO
nptTotal of pieces produced for work-order
sNumber of scrapt items in the shift
oeeOEE in the shift
rfRF, RV, RQ in the shift
rvRF, RV, RQ in the shift
rqRF, RV, RQ in the shift
stateState of line/machine (1=running/0=stop)
causafmCause of current stop
caudescDescription of current stop
tmfmTM of beginning stop
tpfmClass of current stop machine F=generic stop,S=Setup,O=Organizational,P=Pause
npwoNumber of items required from WO



The following data refers to a specific production line / machine

Field NameField Description
codartProduct code
descrizioProduct description
codopWork order
stateState of line/machine (1=running/0=stop)
causafmCause of current stop
caudescDescription of current stop
tpfmClass of current stop machine F=generic stop,S=Setup,O=Organizational,P=Pause
tmfmTM of beginning stop



In this case we should have a row for each production line

Field NameField Description
codartProduct code
descrizioProduct description
codopWork order
tmTakt Time
nppNumber of pieces expected from the begin of the shift or from the begin of WO
npNumber of pieces produced from the begin of the shift or from the begin of WO
nptTotal of pieces produced for work-order
sNumber of scrapt items in the shift
oeeOEE in the shift
rfRF, RV, RQ in the shift
rvRF, RV, RQ in the shift
rqRF, RV, RQ in the shift
stateState of line/machine (1=running/0=stop)
causafmCause of current stop
caudescDescription of current stop
tmfmTM of beginning stop
tpfmClass of current stop machine F=generic stop,S=Setup,O=Organizational,P=Pause
npwoNumber of items required from WO
  1. Each production order should be changed and reworked in different time but in the same shift
  2. How we will manage multi-WO production ? We could use a JSON field containing information about WO ({wo:'xxx',codart:'yyy',descrizio:'kkk',npwo:'999'}

AgentVisualMng has the aim to answer Visual Devices asks; it could have two type of asks:

  • for giving information about a specific production line
  • for giving information about a sub-set of production line (based on codubib)
  • for giving information about all production line

In all cases the return value of the agent will be a IREC completed by all information required that are described in ask.

Requestandonrt
DataRec(codubi,codubib)if codubi is not empty it queries a specific line, if codubib is not empty it queries specific department, if both are empty it queries all lines

Following IREC information returned by AgentVisualMng for each request

Field NameField Description
produbiJSON: [{codop:'XXX',codart:'XXX',descrizio:'XXX',npwo:'999'},..]
tmTakt Time
nppNumber of pieces expected from the begin of the shift or from the begin of PRODUBI
npNumber of pieces produced from the begin of the shift or from the begin of PRODUBI
nptTotal of pieces produced for PRODUBI
sNumber of scrapt items in the shift
oeeOEE in the shift
rfRF, RV, RQ in the shift
rvRF, RV, RQ in the shift
rqRF, RV, RQ in the shift
stateState of line/machine (1=running/0=stop)
causafmCause of current stop
caudescDescription of current stop
tmfmTM of beginning stop
tpfmClass of current stop machine F=generic stop,S=Setup,O=Organizational,P=Pause
npwoNumber of items required from PRODUBI
  • cli/franke/nis_visual.txt
  • Last modified: 2017/02/24 12:13
  • (external edit)