恒石成品库WCS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
8.6 KiB

20130510��
1�������˵����ݿ�����ͳһ��ʼ������CommonClassLib.AppSettings.cs����һ�β��ҳ�ʼ��һ�Σ�
�߳�WcfControlMonitorLib.CParsePLCData.cs��SocketsTCPIP.CClientTCPIP.cs��ѯ����ʹ�����ڲ������ͳ�ʼ�������ݿ�����ʵ��
2��ʹ��OPC.UA����OPC.DA�������˵�OPCClient�滻ΪUAЭ������Ŀ���ɣ��ͻ��˵�wcfControlMonitorClient��Ŀ��ɾ��CCommonOPCClient.cs������UAЭ��OPCClient���ɡ�
3����û�пͻ��˵�½�������˵�ʱ�����б����ڷ����˽���������ʾ
4��t_base_PLCAsk���������ֶΣ�������IO_CONTROL_APPLY��������ʱ���ⷿF_WareHouse��ӦWAREHOUSE_CODE,��������F_ManageAskkind��ӦCONTROL_APPLY_TYPE
20130620:����CDisassembleTask.cs�Ķ�������������ȡ�����˱�����bug��
20130704:
1�����������������߼�ԤԼ������������\WcfControlMonitorLib\CControl.cs��GetFirstDeviceIFLocked�������ӹ�����������>0���жϣ�
2��ȡ���պ��ͻ��ظ����Զ������Ķ���������������\WcfControlMonitorLib\CGetState.cs��ActionError�������ӹ�����������>0���жϣ�
3����������֮ǰ�Ķ������������棬ȡ��������ԭ����С����ʱ��ֻ������ֵ�����ٿ��Dz����ꡣ��\Model\CGeneralFunction.cs�ĺ���GetMinZeroDistanceTask(int[] mtasks , Model.MDevice devinfo, int devOrder,out int mintask ,out double minDist)
20130709:������ɨ�����������������������ȶ������������ڷ�������֮ǰ�����ȶԣ�����ȷ�ܾ����͡���ȡ����ʱ����Ҫ����t_base_PLCAsk����¼�����룻�ڷ�����ǰ����ʱ����������վ̨���������ȶԣ�t_base_PLCAsk��վ̨����¼������������һֱ���Ϸ�������������ִ�м���δͨ����ʾ�����벻��ȷ��
20130817�����ӿͻ�����ʾÿ��¥PLC������״̬�������ָ��������ٶ��Ĵ������ڡ�PLC��ʼ������ʵ�֣�
20140109:�Ѷ���ȡ��ʱ������վ̨�Ƿ񱻴˶Ѷ�������ԤԼ������AGV��RGV���Ѷ����Ӳ��ڵ����ͻ������룻�������������ĸĽ�;
20140218������������ϵͳ�ϱ�����ʱ�������������ύ�쳣��ֻ�ں�ϻ�Ӽ�¼ɨ�����룬���ڱ������ݿ��洢�����쳣�ָ���������ϵͳ��ʼ����-��PLC��ʼ�����������룻�ϱ��ɹ����ڱ��ش洢���룻�����ڿͻ��˽�������ʾ���������Ѿ��ϱ������룻
20140309���޸ĶѶ���ȡ�����ͻ��жϹ��������ź�ԤԼ�������Ƿ�һ��
20140423��CControl����AheadDetectOK�����ġ�#region ˫���Ѷ�����ȡ�������ڴ��ж��Ƿ�����˫�桢��֤˫�������Ƿ�Ϊ˫�漫�޻�λ������������ccf.ChangeEndCellCode����������λ�Ժ���Ҫ����return false;����������false������ʹ��ԭ����������������
20140514:OPCClient\CCommonOPCClient.cs ��DisConnectOPCServer����: _IfConnectOPCServer = false;�Ų���ɽ���������ִ������Ų���ɽ���������ִ�����
�������ȼ�¼���̻��ѵ��������룬��Ҫ�ڵ����������Ĺ������ͻ�����ʱ���ж����������̻����������Ⱥ�˳��
20140810:���������ͻ��˵�timerFlash_Tick�¼���try֮ǰ����this.SuspendLayout(); finally��������this.ResumeLayout(); �Ż��ͻ���ÿ�θ��Ķ�ˢ�£���Ϊ����ˢ��һ��
20140824��
1���޸Ŀͻ��˺ͷ����˵��������ⷽʽ���޸Ŀͻ��˵������ļ�app.config�е�<netTcpBinding>���µ�receiveTimeout="23:59:59"�����ٿͻ��˺ͷ����˵Ľ�����
timer1 ��interval��Ϊ3600000
2���ͻ������ӽ��շ����˹㲥�ġ���ȡ�����ʹ�������ء��ĺ���public void SendOrderMessage(Model.MonitorInfo mi)��
public IAsyncResult BeginSendOrderMessage(Model.MonitorInfo mi, AsyncCallback callBack, object state)��public void EndSendOrderMessage(IAsyncResult ar)��
�����˵�IControlMonitor.cs����interface IClient������Լ�Ľӿ�void SendOrderMessage( Model.MonitorInfo mi);
IAsyncResult BeginSendOrderMessage(Model.MonitorInfo mi, AsyncCallback callBack, object state); void EndSendOrderMessage(IAsyncResult ar);
�����˵�FrmHost.cs����timer1_Tick������Model.MonitorInfo mi;�޸�ΪFrmHost�༶����
SendMessageToClient�����޸����£�
if (strmessage == "Ѳ���ͻ���")
{
cl.BeginSendOrderMessage(mi, new AsyncCallback(SendOrderMessageCallback), mi);
}
else
{
cl.BeginSendMessage(strmessage, new AsyncCallback(sendMessageCallback), strmessage);
}
3��XP����ϵͳ��WIN7��NameSpaceIndex����������OPCClient.CCommonOPCClient.cs��ConnectOPCServer��CreateSubscriptionGroup
20141110:
1��win7�Ժ��汾��64λ����ϵͳ��32λ����ϵͳ��datatype��Ҫ����OPCClient.CCommonOPCClient.cs��SyncWriteAllItemValue��PLCд����ʱ����ָ�������������ͣ����Ӷ�д���󷵻�ֵ�����ijɹ����ǵ��ж�
2��������PLC�Ķ���ʱMonitoringMode�ĸı䣬OPCClient.CCommonOPCClient.cs�IJ���ʹ��Sampling��
�޸�ΪmonitoredItem.MonitoringMode = MonitoringMode.Reporting;//richard.liu20141110
3��ClientAPI.cs��AddSubscription����innerSubscription.MaxNotificationsPerPublish = 1000;//ÿ�ζ��ķ��أ�������������������richard.liu20141110
20141118:
1��win7�Ժ��汾��64λ����ϵͳ��32λ����ϵͳ��datatype��Ҫ����OPCClient.CCommonOPCClient.cs��SyncWriteAllItemValue��PLCд����ʱ����ָ��������������,��������sValue����item
20141201:
�������ȷ���ɭ���ֵ����⣺
1��Model\CGeneralFunction.cs��GetDoubleForkMonitorInfo�����Ĺ������������ַ�������������
2��WcfControlMonitorLib\CCommonFunction.cs��SendOrderSuccess���� �ӻ����ͻ��豸��ͣ��ʱ�����ܻᱻ�Ѷ����Ż����ɰ�F_LockedState��Ϊ0��Ӧ������F_LockedState<>0���ж�
3��WcfControlMonitorLib\CControl.cs��AheadDetectOK�������豸���м��� ��Ӧ�������豸�Ƿ���ͣ��
4��WcfControlMonitorLib\SControlMonitor.cs��BuildHandTask�������´��ֹ�ָ��ʱ��ֻ��֤�˻�λ��û��֤����
����֣�����970����980����ʱ��ɾ����������һ���豸ָ�������޷�����������970����980������Ϊ900
5��WcfControlMonitorLib\CGetState.cs����ActionComplete������else if (ClearZero == Model.CGeneralFunction.TASKDELETE) ���÷���if������������
20150103:
��������ͨ���޸Ķ��ĵļ���ģʽ�����ж����ָ���
1���ͻ��˳�����timerFlash_Tick������ͨ��������timersum��1����ˢ�¶���һ�Σ�OPCClient.CCommonOPCClient.RefreshMonitoringMode();
2�������˳�����WcfControlMonitorHost\FrmHost.cs����timer1_Tick������ͨ��������timerefesh��1����ˢ�¶���һ�Σ�CStaticClass.WcfControl.RefreshMonitoringMode();
WcfControlMonitorLib\IControlMonitor.cs�ӿ����Ӳ�����Լ[OperationContract] bool RefreshMonitoringMode()
WcfControlMonitorLib\SControlMonitor.cs��������Լʵ�ֺ���public bool RefreshMonitoringMode()
3��OPCClient��Ŀ��
OPCClient\ClientSubscription.cs������ȫ�ֱ���List<MonitoredItem> itemsrefresh��¼ÿ�������
OPCClient\ClientSubscription.cs����AddDataMonitoredItem��������itemsrefresh����
OPCClient\ClientSubscription.cs�����Ӻ���public void RemoveAllMonitoredItems()��ɾ��itemsrefresh�ڵ����м�����
OPCClient\ClientSubscription.cs�����Ӻ���public bool RefreshMonitoringMode()��ͨ�����ö��ĵļ���ģʽ��ˢ�¶���
OPCClient\CCommonOPCClient.cs�����Ӻ���public static bool RefreshMonitoringMode()ͨ�����ö��ĵļ���ģʽ��ˢ�¶���
4��WcfControlMonitorLib\SControlMonitor.cs�ĺ���DealWithDeviceState���� ��ͨɨ�赥������������\��������������������ʱ��PLCɨ����������incompleteBarcode�ij�ʼ��
5��WcfControlMonitorLib\SControlMonitor.cs�ĺ���CCommon_UpdateDB����PLCCommonUpdateDB != null���ж�
20150204:
���ӷ��ͺ���Ӧ�¼�����ʱ��ֻҪͨѶ����3�ξͲ��ڷ������񣬲�����ʾ��Ӱ��OPCClient\CCommonOPCClient.cs���ĺ���SyncWriteAllItemValue��OnDataChange��SyncReadAllItemValue
20151120:
1��ȡ���ͻ��˺ͷ����˵Ķ����ָ����ܣ�ע�͵��ͻ��˳�����timerFlash_Tick������OPCClient.CCommonOPCClient.RefreshMonitoringMode();
ע�͵������˳�����WcfControlMonitorHost\FrmHost.cs����timer1_Tick������CStaticClass.WcfControl.RefreshMonitoringMode();
2���������ڵ���������SocketTCPIPͨѶ��Ӳ�����ϣ��ε�AGV����̨���ߣ�����ͨѶ�жϣ����ǵ���ϵͳ��֪�������⡣�������������Լ�����ʱ�䡣��SocketsTCPIP\CClientTCPIP.cs��InitClientTCPIP��������clientSocket.IOControl(IOControlCode.KeepAliveValues, GetSocketIOControl(), null);
3���Զ���ȡ32λ��64λϵͳ��"S7:"�����ռ���������ConnectOPCServerʱProgID��Ϊ�������⣬���������ȼ��⣺Ӱ�� OPCClient\CCommonOPCClient.cs��ConnectOPCServer������CreateSubscriptionGroup������SyncReadAllItemValue������SyncWriteAllItemValue����
4�������Ų�����������ϵͳ֧��oracle���ݿ������﷨���޸ģ�Ӱ�� WcfControlMonitorLib\CCommonFunction.cs��GetOldDevcieFromStackCorr������WcfControlMonitorLib\CControl.cs��StartOrder������IFExitTopPriDeviceIdxTaskWait������GetAGVFromConveyorDoubleForkGetGoodManageTask������InsertStackMutexOrder������WcfControlMonitorLib\CDisassembleTask.cs��GetOutDoubleForkTask������WcfControlMonitorLib\CObtainTask.cs��GetManagerTask������WcfControlMonitorLib\CStaticClass.cs���ӵ���ϵͳ���ݿ⹤���ij�ʼ������ CStaticClass.DBFactory��WcfControlMonitorLib\SControlMonitor.cs��BarcodeComplete��DealWithDeviceState����
5���������������Ӱ��ճ����������Ʊ�T_Base_TaskCount�ļ�¼��ȡ�����������ƿ�����������ȫ����ȡ��Ӱ��WcfControlMonitorLib\CObtainTask.cs��GetManagerTask����
6��������ֻ���������񽻻����豸��Ӧ���豸״̬DB2����������DB1���豸������ɨ������ʮ��·�����ͻ����Ѷ����Ż�վ̨�����������������źš����̶����������źŵȣ����ڱ�T_Base_Device�������ֶ�f_controldevice='1'�����ڷ������˴�����f_controldevice='0'���ڿͻ�����ʾ״̬��Ӱ�죺WcfControlMonitorLib\SControlMonitor.cs��DealWithDeviceState����