question

Luis Gaytan avatar image
0 Likes"
Luis Gaytan asked Luis Gaytan commented

Conditional decide Verify only 2 items each shift

Good evening, I have the idea to verify only 2 items each shift but I want some help to improve this weak logic, the idea is that each day the operator check 2 items in the conveyor using this custom code with the conditional decide:

  1. double currentHour = Model.dateTime.hour;
  2.  
  3. if (currentHour == 9)
  4. {
  5. return 1;
  6. }
  7. return 2;

Thank you for the support!

Best regards,

Luis Gaytán

Verify2Items.fsm

FlexSim 23.2.1
process flowconditional decideconveyor process flow
verify2items.fsm (54.4 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Julio R avatar image
2 Likes"
Julio R answered Luis Gaytan commented

Hello @Luis Gaytan ,

Here is a different idea to do what you are trying to do. Perhaps I overcomplicated things, but it does what you are expecting.

I am using processFlow, and the verification process you can change to whererver you want. If you need any explanation of the model please let me know.

EjemploPreguntaAnswers.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.