darknightshine

Time Input from NB Screen CP1L-E

2 posts in this topic

Hi guys,

    I am trying to make a controller for an oven using MODBUS with a CP1L and an NB screen. My oven program will have 10 stages in one baking cycle, and the parameters for each stage can be modified individually (temperature, blower speed and time). I have set my number input in the NB screen to be a unsigned int of 2 integers and 2 decimals, and it writes to H4 in plc H memory. I move this value from H4 to W4 in the PLC, and input W4 into a timer (T0000). I have tried data manipulation and still have no success in getting this to work properly. My CP1L timer is set to BCD mode, as I am using premade MODBUS function blocks which are programmed with timers in BCD mode. Does anyone have any pointers regarding this? In the screenshot provided, the number i inputed in the HMI was 60.00.

Capture5.PNG

Share this post


Link to post
Share on other sites

Your NB screen is sending you binary data so if you want to use it as BCD you should convert it with the function BCD instead of using the MOV function. (BCD H4 W4). 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now