返回列表 发帖

请问个问题 我是新手 关于动画的

float xRatio = GrpManager.流水线.Size.Width / 905f;
float yRatio = GrpManager.流水线.Size.Height / 652f;

float speed = 流水线.速度 / 10f;

//空桶移动
if ((流水线.工艺流程序号 & 0x1) == 0x1)
{
    if(流水线.装运桶号 == 0)
        {
                流水线.装运桶隐藏 = 0;
                if(流水线.小车移动1 > 0)
                {
                        流水线.小车移动1 -= speed;
                }
        }
        if((流水线.空桶移动1 <150))
        {
                流水线.空桶移动1 += speed;
                if(流水线.空桶移动1 > 150) 流水线.空桶移动1 = 150;
        }
        else
        {
                流水线.空桶隐藏 = 0;
                流水线.进料液位 = 0;
                流水线.半成品移动1= 0;
                流水线.半成品隐藏 = 1;
                流水线.罐装工艺序号 = 0;
        }
}
这个是易控 流水线上的 画面程序  请问
float xRatio = GrpManager.流水线.Size.Width / 905f;
float yRatio = GrpManager.流水线.Size.Height / 652f;

float speed = 流水线.速度 / 10f;
这个段程序是什么意思啊?
还有我如何通过开关量 来实现 实数 控制的动画移动

您好
易控演示工程因为没有下位PLC设备,所有动画都是通过用户程序模拟的.
float xRatio = GrpManager.流水线.Size.Width / 905f;
float yRatio = GrpManager.流水线.Size.Height / 652f;
float speed = 流水线.速度 / 10f;
实现的是除法运算.
目的是实现瓶子移动.

TOP

返回列表