This commit is contained in:
atvstdla
2025-09-26 18:15:59 +09:00
parent 54c64a06bd
commit 16da4a5ffa
65 changed files with 5700 additions and 3514 deletions

View File

@@ -45,6 +45,7 @@
<ItemGroup>
<Compile Include="Enum.cs" />
<Compile Include="Enum_IO.cs" />
<Compile Include="Enum_Mot.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RS232.cs" />
</ItemGroup>

View File

@@ -293,6 +293,9 @@ namespace AR
FG_MINSPACE,
FG_DEBUG,
FG_AUTOOUTCONVL,
FG_AUTOOUTCONVR,
VS_DETECT_REEL_L,
VS_DETECT_REEL_R,
VS_DETECT_CONV_L,
@@ -397,7 +400,6 @@ namespace AR
CONVR_RUNTIME,
}
public enum eECode : byte
{
@@ -405,13 +407,8 @@ namespace AR
EMERGENCY = 1,
NOMODELV = 2,//작업모델
NOMODELM = 3,//모션모델
//DOORSAFTY = 6,
//AREASAFTY = 7,
//VIS_LICENSE = 8,
HOME_TIMEOUT = 9,
//AIRNOOUT = 10,
NOFUNCTION = 11,
//AIRNOTDETECT = 12,
DOOFF = 27,//출력 off
DOON = 28,//출력 on
@@ -421,16 +418,9 @@ namespace AR
MESSAGE_INFO = 32,
MESSAGE_ERROR = 33,
//VISION_NOTREADY = 34,
//VISION_NOCONN = 35,
//VISION_TRIGERROR = 36,
//VISION_COMMERROR = 37,
//VISION_NORECV = 38,
AZJINIT = 39, //DIO 혹은 모션카드 초기화 X
//MOT_HSET = 41,
MOT_SVOFF = 42,
//MOT_HSEARCH = 43,
MOT_CMD = 71,
USER_STOP = 72,

View File

@@ -34,8 +34,8 @@ namespace AR
R_PICK_BW = 0x20, R_PICK_FW, R_PICK_VAC,
L_PICK_BW = 0x24, L_PICK_FW, L_PICK_VAC,
L_CONV1 = 0x30, L_CONV3 = 0x32, L_CONV4 = 0x33,
R_CONV1 = 0x34, R_CONV3 = 0x36, R_CONV4 = 0x37,
L_CONV1 = 0x30, L_CONV4 = 0x33,
R_CONV1 = 0x34, R_CONV4 = 0x37,
R_CYLUP = 0x38, R_CYLDN,
L_CYLDN = 0x3A, L_CYLUP,
@@ -65,9 +65,9 @@ namespace AR
TWR_GRNF = 0x0D, TWR_YELF, TWR_REDF,
PORTL_MOT_RUN = 0x1A, PORTL_MOT_DIR, CART_MAG0,
PORTC_MOT_RUN = 0x10, PORTC_MOT_DIR, CART_MAG1,
PORTR_MOT_RUN = 0x14, PORTR_MOT_DIR, CART_MAG2,
PORTL_MOT_RUN = 0x1A, PORTL_MOT_DIR, PORTL_MAGNET,
PORTC_MOT_RUN = 0x10, PORTC_MOT_DIR, PORTC_MAGNET,
PORTR_MOT_RUN = 0x14, PORTR_MOT_DIR, PORTR_MAGNET,
PRINTL_VACO = 0x1E, PRINTL_VACI,
PRINTR_VACO = 0x18, PRINTR_VACI,

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AR
{
/// <summary>
/// 모션 축 정보
/// </summary>
public enum eAxis : byte
{
PX_PICK = 0,
PZ_PICK,
PL_MOVE,
PL_UPDN,
PR_MOVE,
PR_UPDN,
Z_THETA,
}
public enum eAxisName : byte
{
Picker_X = 0,
Picker_Z ,
PrinterL_Move,
PrinterL_UpDn,
PrinterR_Move,
PrinterR_UpDn,
Theta,
}
}

View File

@@ -108,6 +108,8 @@ namespace AR
[Category("Timeout Setting"), DisplayName("Max DIO operation time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
public int Timeout_DIOCommand { get; set; }
[Category("Timeout Setting"), DisplayName("Auto Conveyor output time (sec)"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
public int Timeout_AutoOutConvSignal { get; set; }
#endregion
@@ -194,11 +196,13 @@ namespace AR
[Category("Advanced Parameter"), Browsable(false), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
public Boolean Disable_SidQtyCheck { get; set; }
[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
public Boolean EnableDebugMode { get; set; }
//[Category("Advanced Parameter"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
//public int AutoConveyorReelOut { get; set; }
#endregion
#region "function"
@@ -446,6 +450,7 @@ namespace AR
public override void AfterLoad()
{
if (Timeout_AutoOutConvSignal < 1) Timeout_AutoOutConvSignal = 5;
if (WMS_CENTER_CD.isEmpty()) WMS_CENTER_CD = "V1";
if (WMS_PROGRAM_ID.isEmpty()) WMS_PROGRAM_ID = "LABEL ATTACH";
if (WMS_REG_USERID.isEmpty()) WMS_REG_USERID = "ATVLA1";